Date: Wed, 10 Aug 2005 23:36:16 +0800 (CST) From: chinsan <chinsan.tw@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/84763: [NEW PORT] print/acroread7-dan: Acrobat Reader7(Danish Language Pack) Message-ID: <20050810153616.81A547301F@chinsan.twbbs.org> Resent-Message-ID: <200508101540.j7AFeHbu034250@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 84763 >Category: ports >Synopsis: [NEW PORT] print/acroread7-dan: Acrobat Reader7(Danish Language Pack) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 10 15:40:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: chinsan >Release: FreeBSD 5.4-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD chinsan.twbbs.org 5.4-STABLE FreeBSD 5.4-STABLE #2: Sat Jul 30 16:27:25 CST 2005 root@chinsan.twbbs.org:/usr/obj/usr/src/sys/TAKAKO i386 >Description: This port is Acrobat Reader7(Danish Language Pack) Thanks. :) >How-To-Repeat: #cd /usr/ports/print #sh acroread7-dan.shar #cd acroread7-dan ; make install clean >Fix: --- acroread7-dan.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # acroread7-dan # acroread7-dan/Makefile # acroread7-dan/distinfo # acroread7-dan/pkg-deinstall # acroread7-dan/pkg-descr # acroread7-dan/pkg-install # echo c - acroread7-dan mkdir -p acroread7-dan > /dev/null 2>&1 echo x - acroread7-dan/Makefile sed 's/^X//' >acroread7-dan/Makefile << 'END-of-acroread7-dan/Makefile' X# New ports collection makefile for: acroread7-dan X# Date created: 2005/08/08 X# Whom: chinsan <chinsan.tw@gmail.com> X# Origin: print/acroread7 X# X# $FreeBSD$ X# X XPORTNAME= acroread7-dan XPORTVERSION= 7.0.0 XCATEGORIES= print linux XMASTER_SITES= http://download.adobe.com/pub/adobe/reader/unix/7x/7.0/dan/ \ X ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/dan/ XDISTNAME= AdobeReader_dan-7.0.0-2.i386.rpm XEXTRACT_SUFX= XDIST_SUBDIR= acroread XEXTRACT_ONLY= XRESTRICTED= "Must fill out redistribution form at http://www.adobe.com/products/acrobat/distribute.html" X XMAINTAINER= chinsan.tw@gmail.com XCOMMENT= Acrobat Reader7(Danish Language Pack) X XBUILD_DEPENDS= rpm:${PORTSDIR}/archivers/rpm XRUN_DEPENDS= ${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2 \ X ${LINUXBASE}/usr/lib/libpango-1.0.so.0:${PORTSDIR}/x11-toolkits/linux-pango X XCONFLICTS= acroread-[0-9]* acroread7-[0-9]* zh-acroread7-chs-[0-9]* \ X zh-acroread7-cht-[0-9]* de-acroread7-deu-[0-9]* \ X acroread7-esp-[0-9]* fr-acroread7-fra-[0-9]* \ X acroread7-ita-[0-9]* ja-acroread7-jpn-[0-9]* \ X ko-acroread7-kor-[0-9]* acroread7-nld-[0-9]* \ X acroread7-nor-[0-9]* acroread7-ptb-[0-9]* \ X acroread7-suo-[0-9]* acroread7-sve-[0-9]* X XONLY_FOR_ARCHS= amd64 i386 XUSE_REINPLACE= yes XUSE_LINUX= yes XUSE_XLIB= yes # This should be USE_X_PREFIX, doesn't work yet. XNO_BUILD= yes XREINPLACE_ARGS= -i '' -E XPLIST= ${WRKDIR}/plist XPREFIX?= ${LINUXBASE} # have a look at the USE_XLIB comment X Xpre-install: X @kldstat -v | ${GREP} -E 'linux(aout|elf)' >/dev/null ||\ X { ${ECHO_MSG} "Linux ABI compatibility must be enabled to install ${PORTNAME}-${PORTVERSION}"; \ X exit 1; } X @${RM} -rf ${WRKSRC}/tmp X @${MKDIR} ${WRKSRC}/tmp X cd ${WRKSRC}/tmp; \ X rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} | ${CPIO} -id; \ X ${RM} -rf usr/bin/acroread; \ X ${FIND} * -type f -o -type l > ${PLIST} \ X && ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' | \ X ${GREP} -vE "(usr/bin$$|local$$|share$$|usr$$)" >> ${PLIST} X @${ECHO} @cwd %%LOCALBASE%% >> ${PLIST} X @${ECHO} bin/acroread7 >> ${PLIST} X @${ECHO} bin/acroread >> ${PLIST} X @${ECHO} "@unexec rpm -e --noscripts --root ${PREFIX} --dbpath /var/lib/rpm \ X ${DISTNAME:S/.i386.rpm//} 2>/dev/null || ${TRUE}" >> ${PLIST} X Xdo-install: X @rpm -U --ignorearch --ignoreos --force --root ${PREFIX} --dbpath /var/lib/rpm \ X --nodeps --replacepkgs ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} || ${TRUE} X # disable the PPKLite plugin as it requires an LDAP share lib X ${CHMOD} 0 ${PREFIX}/usr/local/Adobe/Acrobat7.0/Reader/intellinux/plug_ins/PPKLite.api X# XXX: This is missing a "${BRANDELF} -t Linux <executables>". X Xpost-install: X @${REINPLACE_CMD} 's:Linux:FreeBSD|Linux:g' \ X ${PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread X cd ${LOCALBASE}/bin ; ${LN} -sf ${PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread7 X cd ${LOCALBASE}/bin ; ${LN} -sf ${PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread X @${ECHO_MSG} "Be sure to read the license agreement in" X @${ECHO_MSG} "${PREFIX}/usr/local/Adobe/Acrobat7.0/Reader/Legal/DAN/license_DAN_uc.txt" X X.include <bsd.port.mk> END-of-acroread7-dan/Makefile echo x - acroread7-dan/distinfo sed 's/^X//' >acroread7-dan/distinfo << 'END-of-acroread7-dan/distinfo' XMD5 (acroread/AdobeReader_dan-7.0.0-2.i386.rpm) = 1372d728634ec9fcd03ac53a70422017 XSIZE (acroread/AdobeReader_dan-7.0.0-2.i386.rpm) = 43337022 END-of-acroread7-dan/distinfo echo x - acroread7-dan/pkg-deinstall sed 's/^X//' >acroread7-dan/pkg-deinstall << 'END-of-acroread7-dan/pkg-deinstall' X#!/bin/sh Xrm -f ${PKG_PREFIX}/usr/bin/acroread7 Xrm -f ${PKG_PREFIX}/usr/bin/acroread END-of-acroread7-dan/pkg-deinstall echo x - acroread7-dan/pkg-descr sed 's/^X//' >acroread7-dan/pkg-descr << 'END-of-acroread7-dan/pkg-descr' XAcrobat Reader is part of the Adobe Acrobat family of software, which lets Xyou view, distribute, and print documents in Portable Document Format X(PDF)--regardless of the computer, operating system, fonts, or application Xused to create the original file. PDF files retain all the formatting, Xfonts, and graphics of the original document, and virtually any XPostScript(TM) document can be converted into a PDF file. X XUse the "acroread7" command to run this program. END-of-acroread7-dan/pkg-descr echo x - acroread7-dan/pkg-install sed 's/^X//' >acroread7-dan/pkg-install << 'END-of-acroread7-dan/pkg-install' X#!/bin/sh Xcd ${PREFIX:-/usr/local}/bin ; ln -sf ${PKG_PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread7 Xcd ${PREFIX:-/usr/local}/bin ; ln -sf ${PKG_PREFIX}/usr/local/Adobe/Acrobat7.0/bin/acroread acroread END-of-acroread7-dan/pkg-install exit --- acroread7-dan.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050810153616.81A547301F>