ports/187348: [PATCH] graphics/xpdf: support staging
Dmitry Marakasov
amdmi3 at amdmi3.ru
Fri Mar 7 12:00:01 UTC 2014
>Number: 187348
>Category: ports
>Synopsis: [PATCH] graphics/xpdf: support staging
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 07 12:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Marakasov
>Release: FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260807: Fri Jan 17 13:14:28 MSK
>Description:
- Support staging
- Use new LIB_DEPENDS syntax
- Use new OPTIONS features
Port maintainer (cy at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 1.00.2014.02.18 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- xpdf-3.03.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 340759)
+++ Makefile (working copy)
@@ -5,13 +5,12 @@
PORTREVISION= 4
CATEGORIES= graphics print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
- ${MASTER_SITE_TEX_CTAN}
-MASTER_SITE_SUBDIR= support/xpdf
+ TEX_CTAN/support/xpdf/
MAINTAINER= cy at FreeBSD.org
COMMENT= Display PDF files and convert them to other formats
-LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
+LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
GNU_CONFIGURE= yes
USES= gmake
@@ -30,58 +29,30 @@
LIBPAPER_DESC= Enable libpaper
TYPE1_DESC= Ghostscript type1 fonts
OPTIONS_DEFAULT= TYPE1 X11
+OPTIONS_SUB= yes
-NO_STAGE= yes
+TYPE1_RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts
+LIBPAPER_LIB_DEPENDS= libpaper.so:${PORTSDIR}/print/libpaper
+LIBPAPER_CONFIGURE_ON= --with-libpaper-library="${LOCALBASE}/lib" \
+ --with-libpaper-includes="${LOCALBASE}/include"
+LIBPAPER_CONFIGURE_OFF= --without-libpaper-library
+A4_CONFIGURE_ENABLE= a4-paper
+X11_CONFIGURE_WITH= x
+X11_USES= motif
+
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MTYPE1}
-RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts
-.endif
-
-.if ${PORT_OPTIONS:MLIBPAPER}
-LIB_DEPENDS+= paper.2:${PORTSDIR}/print/libpaper
-CONFIGURE_ARGS+=--with-libpaper-library="${LOCALBASE}/lib" \
- --with-libpaper-includes="${LOCALBASE}/include"
-.else
-CONFIGURE_ARGS+=--without-libpaper-library
-.endif
-
-.if defined(A4)
-CONFIGURE_ARGS+= --enable-a4-paper
-.endif
-
-MAN1= pdffonts.1 \
- pdfimages.1 \
- pdfinfo.1 \
- pdfdetach.1 \
- pdftoppm.1 \
- pdftops.1 \
- pdftotext.1
-MAN5= xpdfrc.5
-
-.if ${PORT_OPTIONS:MX11}
-CONFIGURE_ARGS+= --with-x
-USES+= motif
-MAN1+= xpdf.1
-PLIST_SUB+= X11=""
-.else
-CONFIGURE_ARGS+= --without-x
-PLIST_SUB+= X11="@comment "
-.endif
-
post-patch:
${REINPLACE_CMD} -e 's|undef USE_COMBO_BOX|define USE_COMBO_BOX 1|' \
${WRKSRC}/xpdf/XPDFViewer.h
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ANNOUNCE CHANGES README misc/hello.pdf
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/
.endfor
-.endif
.if ${PORT_OPTIONS:MX11}
- ${LN} -sf ${PREFIX}/libexec/xpdf/xpdf ${PREFIX}/bin/xpdf
+ ${LN} -sf ${PREFIX}/libexec/xpdf/xpdf ${STAGEDIR}${PREFIX}/bin/xpdf
.endif
.include <bsd.port.mk>
Index: pkg-plist
===================================================================
--- pkg-plist (revision 340759)
+++ pkg-plist (working copy)
@@ -13,8 +13,17 @@
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/hello.pdf
%%PORTDOCS%%@dirrm %%DOCSDIR%%
- at dirrm share/xpdf/man/man5
- at dirrm share/xpdf/man/man1
- at dirrm share/xpdf/man
- at dirrm share/xpdf
+%%DATADIR%%/man/man1/pdfdetach.1.gz
+%%DATADIR%%/man/man1/pdffonts.1.gz
+%%DATADIR%%/man/man1/pdfimages.1.gz
+%%DATADIR%%/man/man1/pdfinfo.1.gz
+%%DATADIR%%/man/man1/pdftoppm.1.gz
+%%DATADIR%%/man/man1/pdftops.1.gz
+%%DATADIR%%/man/man1/pdftotext.1.gz
+%%X11%%%%DATADIR%%/man/man1/xpdf.1.gz
+%%DATADIR%%/man/man5/xpdfrc.5.gz
+ at dirrm %%DATADIR%%/man/man5
+ at dirrm %%DATADIR%%/man/man1
+ at dirrm %%DATADIR%%/man
+ at dirrm %%DATADIR%%
@dirrm libexec/xpdf
--- xpdf-3.03.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list