aboutsummaryrefslogtreecommitdiff
path: root/print/acroread7
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2005-03-19 21:22:31 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2005-03-19 21:22:31 +0000
commit1386b6bbfab3125fffaf3643913d76240f6f0c84 (patch)
tree7d9ec5744be3a1c79fe7a6fde02af2dbeca710d6 /print/acroread7
parentc0253bca5b0d2d76cf33b1830ed46c7e9720065c (diff)
downloadports-1386b6bbfab3125fffaf3643913d76240f6f0c84.tar.gz
ports-1386b6bbfab3125fffaf3643913d76240f6f0c84.zip
This is acroread7, the new version of Adobe Acrobat reader.
Submitted by: trevor
Notes
Notes: svn path=/head/; revision=131658
Diffstat (limited to 'print/acroread7')
-rw-r--r--print/acroread7/Makefile61
-rw-r--r--print/acroread7/distinfo2
-rw-r--r--print/acroread7/pkg-deinstall3
-rw-r--r--print/acroread7/pkg-descr8
-rw-r--r--print/acroread7/pkg-install3
5 files changed, 77 insertions, 0 deletions
diff --git a/print/acroread7/Makefile b/print/acroread7/Makefile
new file mode 100644
index 000000000000..9d5f36c387b2
--- /dev/null
+++ b/print/acroread7/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: acroread7
+# Date created: 16 March 2005
+# Whom: Trevor Johnson <trevor@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= acroread7
+PORTVERSION= 7.0.0
+CATEGORIES= print linux
+MASTER_SITES= http://download.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/ \
+ ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/
+DISTNAME= AdobeReader_enu-7.0.0-1.i386.rpm
+EXTRACT_SUFX=
+DIST_SUBDIR= acroread
+EXTRACT_ONLY=
+
+MAINTAINER= trevor@FreeBSD.org
+COMMENT= View, distribute and print PDF documents
+
+BUILD_DEPENDS= rpm:${PORTSDIR}/archivers/rpm
+RUN_DEPENDS= ${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2 \
+ ${LINUXBASE}/usr/lib/libpango-1.0.so.0:${PORTSDIR}/x11-toolkits/linux-pango \
+ ${LINUXBASE}/usr/X11R6/lib/libXext.so.6:${PORTSDIR}/x11/linux-XFree86-libs
+
+ONLY_FOR_ARCHS= amd64 i386
+USE_REINPLACE= yes
+USE_LINUX?= yes
+NO_BUILD= yes
+REINPLACE_ARGS= -i '' -E
+NO_FILTER_SHLIBS= yes
+PLIST= ${WRKDIR}/plist
+PREFIX= ${LINUXBASE}
+
+pre-install:
+ @kldstat -v | ${GREP} -E 'linux(aout|elf)' >/dev/null ||\
+ { ${ECHO_MSG} "Linux ABI compatibility must be enabled to install ${PORTNAME}-${PORTVERSION}"; \
+ exit 1; }
+ @${RM} -rf ${WRKSRC}/tmp
+ @${MKDIR} ${WRKSRC}/tmp
+ cd ${WRKSRC}/tmp; \
+ rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} | ${CPIO} -id; \
+ ${FIND} * -type f -o -type l > ${PLIST} \
+ && ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' | \
+ ${GREP} -vE "(usr/bin$$|local$$|share$$|usr$$)" >> ${PLIST}
+
+do-install:
+ @rpm -U --ignorearch --ignoreos --root ${PREFIX} --dbpath /var/lib/rpm \
+ --nodeps --replacepkgs ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} || ${TRUE}
+ # disable the PPKLite plugin as it requires an LDAP share lib
+ ${CHMOD} 0 ${PREFIX}/usr/local/Adobe/Acrobat7.0/Reader/intellinux/plug_ins/PPKLite.api
+
+post-install:
+ @${REINPLACE_CMD} 's:Linux:FreeBSD|Linux:g' \
+ ${PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread
+ cd ${LOCALBASE}/bin ; ${LN} -sf ${PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread7
+ cd ${LOCALBASE}/bin ; ${LN} -sf ${PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread
+ @${ECHO_MSG} "Be sure to read the license agreement in"
+ @${ECHO_MSG} "${PREFIX}/usr/local/Adobe/Acrobat7.0/Reader/Legal/ENU/license_ENU_uc.txt"
+
+.include <bsd.port.mk>
diff --git a/print/acroread7/distinfo b/print/acroread7/distinfo
new file mode 100644
index 000000000000..01803e00d9f8
--- /dev/null
+++ b/print/acroread7/distinfo
@@ -0,0 +1,2 @@
+MD5 (acroread/AdobeReader_enu-7.0.0-1.i386.rpm) = eba9f1d660f1c6d1ee7783afd63d0e9c
+SIZE (acroread/AdobeReader_enu-7.0.0-1.i386.rpm) = 39866435
diff --git a/print/acroread7/pkg-deinstall b/print/acroread7/pkg-deinstall
new file mode 100644
index 000000000000..49b0cb2d89a3
--- /dev/null
+++ b/print/acroread7/pkg-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+rm -f ${PKG_PREFIX}/usr/bin/acroread7
+rm -f ${PKG_PREFIX}/usr/bin/acroread
diff --git a/print/acroread7/pkg-descr b/print/acroread7/pkg-descr
new file mode 100644
index 000000000000..7b6f6561fa4d
--- /dev/null
+++ b/print/acroread7/pkg-descr
@@ -0,0 +1,8 @@
+Acrobat Reader is part of the Adobe Acrobat family of software, which lets
+you view, distribute, and print documents in Portable Document Format
+(PDF)--regardless of the computer, operating system, fonts, or application
+used to create the original file. PDF files retain all the formatting,
+fonts, and graphics of the original document, and virtually any
+PostScript(TM) document can be converted into a PDF file.
+
+Use the "acroread7" command to run this program.
diff --git a/print/acroread7/pkg-install b/print/acroread7/pkg-install
new file mode 100644
index 000000000000..368fbff2b52f
--- /dev/null
+++ b/print/acroread7/pkg-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd ${PREFIX:-/usr/local}/bin ; ln -sf ${PKG_PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread7
+cd ${PREFIX:-/usr/local}/bin ; ln -sf ${PKG_PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread