diff options
author | lioux <lioux@FreeBSD.org> | 2007-03-06 11:20:02 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2007-03-06 11:20:02 +0800 |
commit | 22c7d64e84e20b3f4103f6039829f72308733e7a (patch) | |
tree | 6310684cb0187a60caa9306925b9443502f4147b /portuguese | |
parent | d5d81a7a83cb41372f202a903ff0f058aebb10cc (diff) | |
download | freebsd-ports-gnome-22c7d64e84e20b3f4103f6039829f72308733e7a.tar.gz freebsd-ports-gnome-22c7d64e84e20b3f4103f6039829f72308733e7a.tar.zst freebsd-ports-gnome-22c7d64e84e20b3f4103f6039829f72308733e7a.zip |
New port irpf version 2007.1.0: Programa do Imposto de Renda Pessoa
Fisica 2007 versao Java
Diffstat (limited to 'portuguese')
-rw-r--r-- | portuguese/Makefile | 1 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/Makefile | 73 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/distinfo | 3 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/files/pkg-message.in | 14 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/files/wrapper.sh | 55 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/pkg-descr | 8 |
6 files changed, 154 insertions, 0 deletions
diff --git a/portuguese/Makefile b/portuguese/Makefile index 9e93d1913889..896031915333 100644 --- a/portuguese/Makefile +++ b/portuguese/Makefile @@ -6,6 +6,7 @@ SUBDIR += acroread SUBDIR += aspell SUBDIR += aspell-pt_BR + SUBDIR += irpf-pt_BR SUBDIR += ispell-pt_BR SUBDIR += kde3-i18n SUBDIR += kde3-i18n-pt_BR diff --git a/portuguese/irpf-pt_BR/Makefile b/portuguese/irpf-pt_BR/Makefile new file mode 100644 index 000000000000..1e1d3e09af26 --- /dev/null +++ b/portuguese/irpf-pt_BR/Makefile @@ -0,0 +1,73 @@ +# New ports collection makefile for: irpf +# Date created: Ter 6 Mar 2007 01:50:17 UTC +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= irpf +PORTVERSION= 2007.1.0 +CATEGORIES= portuguese finance java +MASTER_SITES= http://www.receita.fazenda.gov.br/publico/programas/irpf/2007/PGDIrpf2007/Java/ZIP/ +PKGNAMEPREFIX?= pt_BR- +DISTNAME= irpf2007v1.0 + +MAINTAINER= lioux@FreeBSD.org +COMMENT= Programa do Imposto de Renda Pessoa Fisica 2007 versao Java + +USE_ZIP= yes + +USE_JAVA= yes +JAVA_VERSION= 1.4+ +JAVA_OS= native + +NO_BUILD= yes +NO_WRKSUBDIR= yes +SUB_FILES= pkg-message +PLIST_SUB= JAR_DIR=${JAR_DIR} +PKGMESSAGE= ${WRKDIR}/pkg-message + +JAVAVM= ${LOCALBASE}/bin/java + +JAR_DIR= ${JAVAJARDIR:S,^${PREFIX}/,,}/${PORTNAME} + +JAR_FILES= \ + irpf.jar \ + jhall.jar + +PLIST_FILES+= bin/${PORTNAME} + +.for jar in ${JAR_FILES} +PLIST_FILES+= %%JAR_DIR%%/${jar} +.endfor + +PLIST_DIRS+= \ + %%JAR_DIR%% + +post-patch: + @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|; \ + s|%%JAR_FILE%%|${JAR_FILE}|; \ + s|%%JAR_FILES%%|${JAR_FILES}|; \ + s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \ + s|%%JAVAVM%%|${JAVAVM}|;s|%%PREFIX%%|${PREFIX}|" \ + ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh + +do-install: + @${MKDIR} ${PREFIX}/${JAR_DIR} +# jars +.for jar in ${JAR_FILES} + @${INSTALL_DATA} ${WRKSRC}/${jar} \ + ${PREFIX}/${JAR_DIR} +.endfor +# wrapper + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \ + ${PREFIX}/bin/${PORTNAME} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.pre.mk> + +JAR_FILE= ${PORTNAME}.jar + +.include <bsd.port.post.mk> diff --git a/portuguese/irpf-pt_BR/distinfo b/portuguese/irpf-pt_BR/distinfo new file mode 100644 index 000000000000..2d9d810a5742 --- /dev/null +++ b/portuguese/irpf-pt_BR/distinfo @@ -0,0 +1,3 @@ +MD5 (irpf2007v1.0.zip) = fe0e26af6303e72bed7439e416bb0087 +SHA256 (irpf2007v1.0.zip) = 30ead2d86d6cbc28b37f5c1e0cdc7197f5e14f81d99ce80ae641866415f8495a +SIZE (irpf2007v1.0.zip) = 6690204 diff --git a/portuguese/irpf-pt_BR/files/pkg-message.in b/portuguese/irpf-pt_BR/files/pkg-message.in new file mode 100644 index 000000000000..fc86cd559f87 --- /dev/null +++ b/portuguese/irpf-pt_BR/files/pkg-message.in @@ -0,0 +1,14 @@ +1) E vedada apresentacao da declaracao gerada pelo programa IRPF2007 + Java pela pessoa fisica que: + a) obteve, em qualquer mes do ano-calendario de 2006, ganho de + capital na alienacao de bens ou direitos sujeito incidencia do + imposto; + b) optou pela isencao do imposto de renda incidente sobre o ganho + de capital auferido na venda de imoveis residenciais, cujo + produto da venda seja destinado a aplicacao na aquisicao de + imoveis residenciais localizados no Pais, no prazo de 180 (cento + e oitenta) dias contado da celebracao do contrato de venda, nos + termos do art. 39 da Lei no 11.196, de 21 de novembro de 2005. +2) Para efetuar a transmissao em qualquer sistema operacional, + e necessario que esteja instalado o programa Receitanet Java + 2007.01 ou superior. diff --git a/portuguese/irpf-pt_BR/files/wrapper.sh b/portuguese/irpf-pt_BR/files/wrapper.sh new file mode 100644 index 000000000000..d21fbf2b46f6 --- /dev/null +++ b/portuguese/irpf-pt_BR/files/wrapper.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# +# Under a BSDL license. Copyright by Mario S F Ferreira <lioux@FreeBSD.org> +# $FreeBSD$ + +export JAVA_VERSION + +PREFIX="%%PREFIX%%" +# java +JAVA_VERSION="%%JAVA_VERSION%%" +JAVAVM="%%JAVAVM%%" +JAR_DIR="%%JAR_DIR%%" +JAR_FILES="%%JAR_FILES%%" +JAR_FILE="%%JAR_FILE%%" +# home +HOME_DIR=${HOME}/.irpf + +configure_java_classpath () { + if [ -z "${CLASSPATH}" ] + then + CLASSPATH=./irpf.jar:./jhall.jar + else + CLASSPATH=./irpf.jar:./jhall.jar:${CLASSPATH} + fi +} + +prepare_home_dir () { + # create home dir staging area + if [ ! -d ${HOME_DIR}/aplicacao/dados ] + then + mkdir -p ${HOME_DIR}/aplicacao/dados + fi + # link the jar files + for jar in ${JAR_FILES} + do + rm -f ${HOME_DIR}/${jar} 2>/dev/null + cp -f ${PREFIX}/${JAR_DIR}/${jar} ${HOME_DIR}/${jar} 2>/dev/null + done +} + +start_irpf () { + cd ${HOME_DIR} && + exec ${JAVAVM} -jar ./${JAR_FILE} "${@}" +} + +# always verify that home dir staging area is pristine +prepare_home_dir + +# prepare java CLASSPATH +configure_java_classpath + +start_irpf + +# we should never get this far +exit 1 diff --git a/portuguese/irpf-pt_BR/pkg-descr b/portuguese/irpf-pt_BR/pkg-descr new file mode 100644 index 000000000000..9a1684d42bd7 --- /dev/null +++ b/portuguese/irpf-pt_BR/pkg-descr @@ -0,0 +1,8 @@ +[ excerpt from developer's web site ] + +Utilizado para preenchimento da declaracao para envio via Internet, +para microcomputador com maquina virtual Java instalada. + +WWW: http://www.receita.fazenda.gov.br/ + +-- lioux@FreeBSD.org |