Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2014 19:46:44 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350840 - head/x11-fm/gentoo
Message-ID:  <201404101946.s3AJki90003730@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Apr 10 19:46:44 2014
New Revision: 350840
URL: http://svnweb.freebsd.org/changeset/ports/350840
QAT: https://qat.redports.org/buildarchive/r350840/

Log:
  Support stage

Modified:
  head/x11-fm/gentoo/Makefile
  head/x11-fm/gentoo/pkg-plist

Modified: head/x11-fm/gentoo/Makefile
==============================================================================
--- head/x11-fm/gentoo/Makefile	Thu Apr 10 19:45:16 2014	(r350839)
+++ head/x11-fm/gentoo/Makefile	Thu Apr 10 19:46:44 2014	(r350840)
@@ -13,24 +13,16 @@ COMMENT=	Gtk+ based, file manager inspir
 
 OPTIONS_DEFINE=	FAM DOCS
 
-USE_GNOME=	gnomehack gtk20
-USES=		gettext gmake pkgconfig
+USE_GNOME=	gtk20
+USES=		gettext gmake pathfix pkgconfig
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	MKDIR_P="${MKDIR}"
 
-MAN1=		gentoo.1
-
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MFAM}
-USES+=		fam
-.else
-CONFIGURE_ARGS+=	--disable-fam
-.endif
+FAM_USES=		fam
+FAM_CONFIGURE_ENABLE=	fam
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g ; \
@@ -42,18 +34,13 @@ post-patch:
 		${WRKSRC}/src/odmultibutton.c
 
 post-install:
-	${INSTALL_MAN} ${WRKSRC}/docs/gentoo.1x ${MANPREFIX}/man/man1/gentoo.1
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/docs/gentoo.1x ${STAGEDIR}${MANPREFIX}/man/man1/gentoo.1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in BUGS CONFIG-CHANGES CREDITS NEWS README README.NLS README.gtkrc \
 	TODO
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-	${TAR} -C ${WRKSRC}/docs --exclude "gentoo.1x*" -cf - . | \
-		${TAR} -C ${DOCSDIR} --unlink -xf -
-	@${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
-	@${FIND} ${DOCSDIR} | ${XARGS} ${CHMOD} ${SHAREMODE}
-	@${FIND} ${DOCSDIR} -type d | ${XARGS} ${CHMOD} a+x
-.endif
+	cd ${WRKSRC}/docs; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+	${RM} -f ${STAGEDIR}${DOCSDIR}/gentoo.1x
 
 .include <bsd.port.mk>

Modified: head/x11-fm/gentoo/pkg-plist
==============================================================================
--- head/x11-fm/gentoo/pkg-plist	Thu Apr 10 19:45:16 2014	(r350839)
+++ head/x11-fm/gentoo/pkg-plist	Thu Apr 10 19:46:44 2014	(r350840)
@@ -1,6 +1,7 @@
 bin/gentoo
 etc/gentoogtkrc
 etc/gentoorc
+man/man1/gentoo.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/BUGS
 %%PORTDOCS%%%%DOCSDIR%%/CONFIG-CHANGES
 %%PORTDOCS%%%%DOCSDIR%%/CREDITS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404101946.s3AJki90003730>