diff options
author | lioux <lioux@FreeBSD.org> | 2014-03-24 07:54:31 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2014-03-24 07:54:31 +0800 |
commit | 20b8e788655c8868065ad971ea856a93473f102a (patch) | |
tree | 9bbe68d84e4cecfe841fe5fb3cbc8ab4e26bcb95 | |
parent | bb57f8af4d76d9810263a7e8a1c60a51d53b4140 (diff) | |
download | freebsd-ports-gnome-20b8e788655c8868065ad971ea856a93473f102a.tar.gz freebsd-ports-gnome-20b8e788655c8868065ad971ea856a93473f102a.tar.zst freebsd-ports-gnome-20b8e788655c8868065ad971ea856a93473f102a.zip |
Update to 1.0 version from 2014: Programa do Imposto de Renda Pessoa Fisica 2014 versao Java
Approved by: bdrewery (mentor)
-rw-r--r-- | portuguese/irpf-pt_BR/Makefile | 80 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/distinfo | 4 | ||||
-rw-r--r-- | portuguese/irpf-pt_BR/files/wrapper.sh | 9 |
3 files changed, 38 insertions, 55 deletions
diff --git a/portuguese/irpf-pt_BR/Makefile b/portuguese/irpf-pt_BR/Makefile index 318cf258ca91..c1d9849c226a 100644 --- a/portuguese/irpf-pt_BR/Makefile +++ b/portuguese/irpf-pt_BR/Makefile @@ -2,18 +2,23 @@ # $FreeBSD$ PORTNAME= irpf -PORTVERSION= 2010.1.0 -PORTREVISION= 1 +PORTVERSION= 2014.1.0 CATEGORIES= portuguese finance java -MASTER_SITES= http://www.receita.fazenda.gov.br/publico/programas/IRPF/2010/PGDIrpf2010/Java/zip/ +MASTER_SITES= http://www28.receita.fazenda.gov.br/publico/programas/IRPF/2014/PGDIRPF2014/Java/zip/ PKGNAMEPREFIX?= pt_BR- -DISTNAME= irpf2010-v1.0 +DISTNAME= IRPF2014-1.0 MAINTAINER= ports@FreeBSD.org -COMMENT= Programa do Imposto de Renda Pessoa Fisica 2010 versao Java +COMMENT= Programa do Imposto de Renda Pessoa Fisica 2014 versao Java + +LICENSE= EULA +LICENSE_NAME= End User License Agreement +LICENSE_FILE= ${WRKSRC}/IRPF-Licenses.txt +LICENSE_PERMS= dist-mirror pkg-mirror auto-accept +LICENSE_DISTFILES= ${DISTNAME}${EXTRACT_SUFX} USES= zip -WRKSRC= ${WRKDIR}/${PORTNAME}2010 +WRKSRC= ${WRKDIR}/${PORTNAME:U}2014 USE_JAVA= yes JAVA_RUN= yes @@ -27,44 +32,45 @@ JAVAVM= ${LOCALBASE}/bin/java JAR_DIR= ${JAVAJARDIR:S,^${PREFIX}/,,}/${PORTNAME} -DESKTOP_ENTRIES= "Imposto de Renda Pessoa Fisica 2010" \ +DESKTOP_ENTRIES= "Imposto de Renda Pessoa Fisica 2014" \ "${COMMENT}" \ "" \ "${PORTNAME}" \ "Office;Finance;" \ - "true" + true # ## Files to install # -# images -IMAGE_FILES= \ - offline.png \ - online.png # jar JAR_FILES= \ irpf.jar \ lib/commons-beanutils-1.7.jar \ - lib/commons-collections-2.1.jar \ + lib/commons-collections-3.2.1.jar \ lib/commons-digester-1.8.jar \ + lib/commons-io-2.4.jar \ lib/commons-logging-1.0.2.jar \ lib/forms-1.0.3.jar \ lib/foxtrot.jar \ - lib/itext-1.02b.jar \ - lib/jasperreports-2.0.3.jar \ + lib/freesans.jar \ + lib/iText-2.1.0.jar \ + lib/jasperreports-3.7.2.jar \ lib/jdt-compiler-3.1.1.jar \ lib/jhall.jar \ lib/looks-1.3.1.jar \ - lib/ppgd-forms-compat-0.2.jar \ - lib/ppgd-gui-4.0.jar \ - lib/ppgd-gui-beans-4.0.jar \ + lib/ppgd-formatosext-4.1.8.jar \ + lib/ppgd-gui-beans-4.1.9.jar \ lib/ppgd-gui-utils-4.0.jar \ + lib/ppgd-icones-4.0.jar \ lib/ppgd-infra-4.0.jar \ - lib/ppgd-negocio-4.0.jar \ + lib/ppgd-negocio-4.1.25.jar \ lib/ppgd-persistencia-4.0.jar \ lib/ppgd-pgd-utils-4.0.jar \ - lib/swing-layout-0.7.jar \ + lib/serpro.jar \ + lib/swing-layout-1.0.4.jar \ + lib/swingx-1.6.jar \ + lib/tinylaf.jar \ lib/xalan.jar # @@ -74,28 +80,20 @@ JAR_FILES= \ # wrapper PLIST_FILES+= bin/${PORTNAME} -# images -.for image in ${IMAGE_FILES} -PLIST_FILES+= %%DATADIR%%/${image} -.endfor - # jars .for jar in ${JAR_FILES} PLIST_FILES+= %%JAR_DIR%%/${jar:C/^lib\///} .endfor -# data dir -PLIST_DIRS+= \ - %%DATADIR%% # jar dir PLIST_DIRS+= \ %%JAR_DIR%% -NO_STAGE= yes +post-extract: + @( cd ${WRKSRC} && ${JAR} xf ./irpf.jar IRPF-Licenses.txt ) + post-patch: - @${SED} -e "s|%%DATADIR%%|${DATADIR}|; \ - s|%%DATA_FILES%%|${IMAGE_FILES}|; \ - s|%%JAR_DIR%%|${JAR_DIR}|; \ + @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|; \ s|%%JAR_FILE%%|${JAR_FILE}|; \ s|%%JAR_FILES%%|${JAR_FILES:C/^lib\///}|; \ s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \ @@ -104,22 +102,16 @@ post-patch: do-install: # jar dir - @${MKDIR} ${PREFIX}/${JAR_DIR} -# data dir - @${MKDIR} ${DATADIR} -# images -.for file in ${IMAGE_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} \ - ${DATADIR} -.endfor + @${MKDIR} ${STAGEDIR}${PREFIX}/${JAR_DIR} + @${CHMOD} 755 ${STAGEDIR}/${PREFIX}/${JAR_DIR} # jars .for jar in ${JAR_FILES} - @${INSTALL_DATA} ${WRKSRC}/${jar} \ - ${PREFIX}/${JAR_DIR} + ${INSTALL_DATA} ${WRKSRC}/${jar} \ + ${STAGEDIR}${PREFIX}/${JAR_DIR} .endfor # wrapper - @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \ - ${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include <bsd.port.pre.mk> diff --git a/portuguese/irpf-pt_BR/distinfo b/portuguese/irpf-pt_BR/distinfo index 0813b1f81b86..03f9c5af9311 100644 --- a/portuguese/irpf-pt_BR/distinfo +++ b/portuguese/irpf-pt_BR/distinfo @@ -1,2 +1,2 @@ -SHA256 (irpf2010-v1.0.zip) = a7b23dd36e9029f7b55979404d83ea25c2d5745f4ce0358d9c42d14b205dbaef -SIZE (irpf2010-v1.0.zip) = 12880956 +SHA256 (IRPF2014-1.0.zip) = 10be5eaaf627646a3c1d0c0fd05d976b0682ec1a03e53459a1f0ba99c70c8a38 +SIZE (IRPF2014-1.0.zip) = 19278166 diff --git a/portuguese/irpf-pt_BR/files/wrapper.sh b/portuguese/irpf-pt_BR/files/wrapper.sh index fb7a15dd8bfd..a08a36807fe5 100644 --- a/portuguese/irpf-pt_BR/files/wrapper.sh +++ b/portuguese/irpf-pt_BR/files/wrapper.sh @@ -6,9 +6,6 @@ export JAVA_VERSION PREFIX="%%PREFIX%%" -# data -DATADIR="%%DATADIR%%" -DATA_FILES="%%DATA_FILES%%" # java JAVA_VERSION="%%JAVA_VERSION%%" JAVAVM="%%JAVAVM%%" @@ -29,12 +26,6 @@ prepare_home_dir () { then mkdir -p ${HOME_DIR}/lib 2>/dev/null fi - # link the data files - for data in ${DATA_FILES} - do - rm -f ${HOME_DIR}/${data} 2>/dev/null - cp -f ${DATADIR}/${data} ${HOME_DIR}/${data} 2>/dev/null - done # link the jar file rm -f ${HOME_DIR}/${JAR_FILE} 2>/dev/null cp -f ${PREFIX}/${JAR_DIR}/${JAR_FILE} ${HOME_DIR}/${JAR_FILE} 2>/dev/null |