Bug 187886 - [PATCH] print/foxitreader: Stage
Summary: [PATCH] print/foxitreader: Stage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-24 00:30 UTC by Johannes Meixner
Modified: 2014-03-31 17:40 UTC (History)
1 user (show)

See Also:


Attachments
foxitreader-1.1.0.patch (1.62 KB, patch)
2014-03-24 00:30 UTC, Johannes Meixner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Meixner 2014-03-24 00:30:01 UTC
- Stagify

Port maintainer (nivit@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 1.00.2014.03.22 (mode: change, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-24 00:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nivit

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-03-31 17:30:14 UTC
Author: nivit
Date: Mon Mar 31 16:30:11 2014
New Revision: 349771
URL: http://svnweb.freebsd.org/changeset/ports/349771
QAT: https://qat.redports.org/buildarchive/r349771/

Log:
  - Convert to USES, that handles tar archives
  - Add support for stage dir    [1]
  - Enable OPTIONS_SUB (for %%NLS%%)
  
  PR:	ports/187886    [1]
  Submitted by:	Johannes Jost Meixner <xmj@chaot.net>

Modified:
  head/print/foxitreader/Makefile

Modified: head/print/foxitreader/Makefile
==============================================================================
--- head/print/foxitreader/Makefile	Mon Mar 31 16:15:56 2014	(r349770)
+++ head/print/foxitreader/Makefile	Mon Mar 31 16:30:11 2014	(r349771)
@@ -20,43 +20,32 @@ LICENSE_TEXT=	http://www.foxitsoftware.c
 
 NO_BUILD=	yes
 
-PLIST_SUB=	NLS="${NLS}"
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
 
-USE_BZIP2=	yes
-USES=		gettext
+USES=	gettext tar:bzip2
 USE_LINUX=	yes
 USE_LINUX_APPS=	cups-libs gtk2
 
 WRKSRC=	${WRKDIR}/${PORTVERSION:R}-release
 
-NO_STAGE=	yes
-
-OPTIONS_DEFINE=	DOCS NLS
-
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MDOCS}
-DISTFILES+=FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf:manual
-.endif
-.if ${PORT_OPTIONS:MNLS}
-NLS=	""
-.else
-NLS=	"@comment "
+DISTFILES+=	FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf:manual
 .endif
 
 do-install:
-	cd ${WRKSRC} && ${MKDIR} ${DATADIR} && \
-	${INSTALL_DATA} fpdfcjk.bin fum.fhd ${DATADIR} && \
-	${INSTALL_PROGRAM} FoxitReader ${DATADIR} && \
-	${LN} -s ${DATADIR}/FoxitReader ${PREFIX}/bin/FoxitReader
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} fpdfcjk.bin fum.fhd ${STAGEDIR}${DATADIR})
+	${INSTALL_PROGRAM} ${WRKSRC}/FoxitReader ${STAGEDIR}${DATADIR}
+	${LN} -s ${DATADIR}/FoxitReader ${STAGEDIR}${PREFIX}/bin/FoxitReader
 .if ${PORT_OPTIONS:MNLS}
 .for locale in de fr ja zh_CN zh_TW
-	${INSTALL_DATA} ${WRKSRC}/po/${locale}/FoxitReader.mo ${PREFIX}/share/locale/${locale}/LC_MESSAGES/
+	${INSTALL_DATA} ${WRKSRC}/po/${locale}/FoxitReader.mo ${STAGEDIR}${PREFIX}/share/locale/${locale}/LC_MESSAGES/
 .endfor
 .endif
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR} && \
-	${INSTALL_DATA} ${DISTDIR}/FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DISTDIR}/FoxitReader${PORTVERSION:R}ForLinux_Manual.pdf ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Nicola Vitale freebsd_committer freebsd_triage 2014-03-31 17:30:41 UTC
State Changed
From-To: open->closed

Committed, thanks!