diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-05-08 23:41:30 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-05-08 23:41:30 +0000 |
commit | 039d6ac33797bef5433983e40b29022513d29a31 (patch) | |
tree | 9de8e471d993df082fcd35756a6758bd293994b9 /print/acroread9 | |
parent | 9ea074ad24f14124f07bf65dade535f19057d468 (diff) | |
download | ports-039d6ac33797bef5433983e40b29022513d29a31.tar.gz ports-039d6ac33797bef5433983e40b29022513d29a31.zip |
Support stage
Notes
Notes:
svn path=/head/; revision=353369
Diffstat (limited to 'print/acroread9')
-rw-r--r-- | print/acroread9/Makefile | 34 | ||||
-rw-r--r-- | print/acroread9/pkg-plist | 1 |
2 files changed, 16 insertions, 19 deletions
diff --git a/print/acroread9/Makefile b/print/acroread9/Makefile index a8977b6bc23f..b051cd3704ba 100644 --- a/print/acroread9/Makefile +++ b/print/acroread9/Makefile @@ -20,9 +20,9 @@ LICENSE_PERMS= auto-accept RUN_DEPENDS= acroreadwrapper>=0.0.20110529:${PORTSDIR}/print/acroreadwrapper +USES= tar:bzip2 RESTRICTED= Must fill out redistribution form at http://www.adobe.com/products/acrobat/distribute.html ONLY_FOR_ARCHS= amd64 i386 -USE_BZIP2= yes USE_LINUX= yes USE_LINUX_APPS= cups-libs gdkpixbuf gtk2 libgcrypt libgpg-error libxml2 pango USE_LDCONFIG= yes @@ -49,7 +49,7 @@ LANGCODE= chs:zh_CN cht:zh_TW dan:da_DK deu:de_DE enu:en_US \ ADOBE_LANG?= ENU .for L in ${ADOBE_LANG:tl} LOCALE_NAME= ${LANGCODE:M${L}\:*:C/.*\://} -MANLANG= ${LOCALE_NAME:C/_.*//:C/en/""/} +MANLANG= ${LOCALE_NAME:C/_.*//:C/en//} LANG_${L:tu}= "" LANG_NON${L:tu}= "@comment " .endfor @@ -68,31 +68,27 @@ INSTALLDIR= ${PREFIX}/${ACRODIR} INSTALLEXEC= ${SETENV} UNAME_s=Linux \ InstallDir=${INSTALLDIR} \ UNAME_r="Linux Compatibility on FreeBSD" \ - ${SH} ./INSTALL --install_path=${INSTALLDIR} > /dev/null - -MAN1= acroread.1 -MANCOMPRESSED= yes + ${SH} ./INSTALL --install_path=${STAGEDIR}${INSTALLDIR} > /dev/null +.if !empty(MANLANG) MANINSTALLDIR= man/${MANLANG} -NO_STAGE= yes -post-man-install: - ${MKDIR} ${MANPREFIX}/${MANINSTALLDIR}/man1 - ${LN} -s -f \ - ${INSTALLDIR}/Adobe/Reader9/Resource/Shell/acroread.1.gz \ - ${MANPREFIX}/${MANINSTALLDIR}/man1/ +.else +MANINSTALLDIR= man +.endif -pre-su-install: +pre-install: @${MKDIR} ${WRKDIR}/bin @${INSTALL_SCRIPT} \ ${WRKDIR}/ln ${WRKDIR}/rm ${WRKDIR}/mv \ ${WRKDIR}/bin do-install: - @${ECHO_CMD} Installing... - @${MKDIR} ${INSTALLDIR} - @${MKDIR} ${PREFIX}/share/desktop-directories + @${MKDIR} ${STAGEDIR}${INSTALLDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/desktop-directories @cd ${WRKSRC} && ${SETENV} PATH=${WRKDIR}/bin:${PATH} ${INSTALLEXEC} > /dev/null - -post-install: post-man-install - @${CAT} ${PKGMESSAGE} + ${MKDIR} ${STAGEDIR}${MANPREFIX}/${MANINSTALLDIR}/man1 + ${LN} -s -f \ + ${INSTALLDIR}/Adobe/Reader9/Resource/Shell/acroread.1.gz \ + ${STAGEDIR}${MANPREFIX}/${MANINSTALLDIR}/man1/ + ${SED} -i "" -e "s,${STAGEDIR},," ${STAGEDIR}${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/.config .include <bsd.port.mk> diff --git a/print/acroread9/pkg-plist b/print/acroread9/pkg-plist index b255e57b2e74..34f0ca21a7c9 100644 --- a/print/acroread9/pkg-plist +++ b/print/acroread9/pkg-plist @@ -433,6 +433,7 @@ %%ACRODIR%%/Adobe/Reader9/Resource/TypeSupport/Unicode/mappings/win/CP950.TXT %%ACRODIR%%/Adobe/Reader9/bin/UNINSTALL %%ACRODIR%%/Adobe/Reader9/bin/acroread +%%MANINSTALLDIR%%/man1/acroread.1.gz @dirrm %%ACRODIR%%/Adobe/Reader9/bin @dirrm %%ACRODIR%%/Adobe/Reader9/Resource/TypeSupport/Unicode/mappings/win @dirrm %%ACRODIR%%/Adobe/Reader9/Resource/TypeSupport/Unicode/mappings/mac |