Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2014 09:40:04 +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: r351785 - head/x11-toolkits/py-gnome-extras
Message-ID:  <201404220940.s3M9e456043285@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Apr 22 09:40:03 2014
New Revision: 351785
URL: http://svnweb.freebsd.org/changeset/ports/351785
QAT: https://qat.redports.org/buildarchive/r351785/

Log:
  Support stage
  Respect EXAMPLES

Modified:
  head/x11-toolkits/py-gnome-extras/Makefile
  head/x11-toolkits/py-gnome-extras/pkg-plist

Modified: head/x11-toolkits/py-gnome-extras/Makefile
==============================================================================
--- head/x11-toolkits/py-gnome-extras/Makefile	Tue Apr 22 09:35:08 2014	(r351784)
+++ head/x11-toolkits/py-gnome-extras/Makefile	Tue Apr 22 09:40:03 2014	(r351785)
@@ -4,7 +4,7 @@
 
 PORTNAME=	gnome-extras
 PORTVERSION=	2.25.3
-PORTREVISION=	13
+PORTREVISION=	14
 CATEGORIES=	x11-toolkits python gnome
 MASTER_SITES=	GNOME
 MASTER_SITE_SUBDIR=	sources/gnome-python-extras/${PORTVERSION:C/..$//}
@@ -15,42 +15,32 @@ DIST_SUBDIR=	gnome2
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	A set of Python bindings for GNOME 2
 
-LIB_DEPENDS=	gtkspell.0:${PORTSDIR}/textproc/gtkspell \
-		gksu2.0:${PORTSDIR}/sysutils/libgksu \
+OPTIONS_DEFINE=	EXAMPLES
+OPTIONS_SUB=	yes
+
+LIB_DEPENDS=	libgtkspell.so:${PORTSDIR}/textproc/gtkspell \
+		libgksu2.so:${PORTSDIR}/sysutils/libgksu \
 #		gdl-1.2:${PORTSDIR}/x11-toolkits/gdl
 
-USE_BZIP2=	yes
-USES=		gmake pkgconfig
+USES=		gmake libtool pathfix pkgconfig tar:bzip2
 USE_PYTHON=	yes
-USE_GNOME=	gnomehack libgtkhtml pygnome2 libgda4
+USE_GNOME=	libgtkhtml pygnome2 libgda4
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 CONFIGURE_ARGS+=--disable-gdl
+INSTALL_TARGET=	install-strip
 
 EG_SRC_DIR=	${WRKSRC}/examples
 EG_DST_DIR=	${PREFIX}/share/examples/py-gnome
-.if !defined(NOPORTDOCS)
 DOCSDIR=	${PREFIX}/share/doc/py-gnome-extras
-.else
-DOCSDIR=	${WRKSRC}/share/doc/py-gnome-extras
-.endif
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|$mozpackage-gtkmozembed|$mozpackage|' \
 		${WRKSRC}/configure
-	@${FIND} ${WRKSRC}/docs -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \
-		-e 's|^HTML_DIR =.*|HTML_DIR = ${DOCSDIR}|g'
 
-.if !defined(NOPORTDOCS)
 post-install:
-	${MKDIR} ${EG_DST_DIR}
-	${TAR} -C ${EG_SRC_DIR} -cf - . | ${TAR} -C ${EG_DST_DIR} -xf -
-	${CHOWN} -R ${BINOWN}:${BINGRP} ${EG_DST_DIR}
-	${CHMOD} -R go-w ${EG_DST_DIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${EG_DST_DIR}
+	cd ${EG_SRC_DIR}; ${COPYTREE_SHARE} . ${STAGEDIR}${EG_DST_DIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/x11-toolkits/py-gnome-extras/pkg-plist
==============================================================================
--- head/x11-toolkits/py-gnome-extras/pkg-plist	Tue Apr 22 09:35:08 2014	(r351784)
+++ head/x11-toolkits/py-gnome-extras/pkg-plist	Tue Apr 22 09:40:03 2014	(r351785)
@@ -19,30 +19,30 @@ include/pygda-4.0/pygdavalue_conversions
 %%PYTHON_SITELIBDIR%%/gtk-2.0/gtkspell.so
 libdata/pkgconfig/gnome-python-extras-2.0.pc
 libdata/pkgconfig/pygda-4.0.pc
-%%PORTDOCS%%share/examples/py-gnome/egg/recent/Bonobo_Sample_Hello.xml
-%%PORTDOCS%%share/examples/py-gnome/egg/recent/bonobo-view.py
-%%PORTDOCS%%share/examples/py-gnome/egg/recent/gtk-view.py
-%%PORTDOCS%%share/examples/py-gnome/egg/recent/populate-recent.py
-%%PORTDOCS%%share/examples/py-gnome/egg/trayicon.py
-%%PORTDOCS%%share/examples/py-gnome/gdl/gdl_combo_button.py
-%%PORTDOCS%%share/examples/py-gnome/gdl/gdl_dock.py
-%%PORTDOCS%%share/examples/py-gnome/gdl/gdl_test.py
-%%PORTDOCS%%share/examples/py-gnome/gksu2/simple.py
-%%PORTDOCS%%share/examples/py-gnome/gtkhtml2/simple-browser.py
-%%PORTDOCS%%share/examples/py-gnome/gtkspell/spell.py
-%%PORTDOCS%%share/examples/py-gnome/gtkspell/test.py
+%%EXAMPLES%%share/examples/py-gnome/egg/recent/Bonobo_Sample_Hello.xml
+%%EXAMPLES%%share/examples/py-gnome/egg/recent/bonobo-view.py
+%%EXAMPLES%%share/examples/py-gnome/egg/recent/gtk-view.py
+%%EXAMPLES%%share/examples/py-gnome/egg/recent/populate-recent.py
+%%EXAMPLES%%share/examples/py-gnome/egg/trayicon.py
+%%EXAMPLES%%share/examples/py-gnome/gdl/gdl_combo_button.py
+%%EXAMPLES%%share/examples/py-gnome/gdl/gdl_dock.py
+%%EXAMPLES%%share/examples/py-gnome/gdl/gdl_test.py
+%%EXAMPLES%%share/examples/py-gnome/gksu2/simple.py
+%%EXAMPLES%%share/examples/py-gnome/gtkhtml2/simple-browser.py
+%%EXAMPLES%%share/examples/py-gnome/gtkspell/spell.py
+%%EXAMPLES%%share/examples/py-gnome/gtkspell/test.py
 share/pygtk/2.0/argtypes/gda-arg-types.py
 share/pygtk/2.0/argtypes/gda-arg-types.pyc
 share/pygtk/2.0/argtypes/gda-arg-types.pyo
 share/pygtk/2.0/defs/gda.defs
 share/pygtk/2.0/defs/gtkhtml2.defs
 share/pygtk/2.0/defs/trayicon.defs
-%%PORTDOCS%%@dirrm share/examples/py-gnome/gtkspell
-%%PORTDOCS%%@dirrm share/examples/py-gnome/gtkhtml2
-%%PORTDOCS%%@dirrm share/examples/py-gnome/gksu2
-%%PORTDOCS%%@dirrm share/examples/py-gnome/gdl
-%%PORTDOCS%%@dirrm share/examples/py-gnome/egg/recent
-%%PORTDOCS%%@dirrm share/examples/py-gnome/egg
+%%EXAMPLES%%@dirrm share/examples/py-gnome/gtkspell
+%%EXAMPLES%%@dirrm share/examples/py-gnome/gtkhtml2
+%%EXAMPLES%%@dirrm share/examples/py-gnome/gksu2
+%%EXAMPLES%%@dirrm share/examples/py-gnome/gdl
+%%EXAMPLES%%@dirrm share/examples/py-gnome/egg/recent
+%%EXAMPLES%%@dirrm share/examples/py-gnome/egg
 @dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/gksu2
 @dirrm %%PYTHON_SITELIBDIR%%/gtk-2.0/egg
 @dirrm include/pygda-4.0



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