Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2014 08:59:01 +0000 (UTC)
From:      Marcus von Appen <mva@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340155 - head/graphics/py-PyX
Message-ID:  <201401180859.s0I8x1G9063241@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mva
Date: Sat Jan 18 08:59:01 2014
New Revision: 340155
URL: http://svnweb.freebsd.org/changeset/ports/340155
QAT: https://qat.redports.org/buildarchive/r340155/

Log:
  - Enable stagedir support
  - Convert to PYDISTUTILS_AUTOPLIST
  - Shorten COMMENT to pet portlint

Deleted:
  head/graphics/py-PyX/pkg-plist
Modified:
  head/graphics/py-PyX/Makefile

Modified: head/graphics/py-PyX/Makefile
==============================================================================
--- head/graphics/py-PyX/Makefile	Sat Jan 18 08:33:40 2014	(r340154)
+++ head/graphics/py-PyX/Makefile	Sat Jan 18 08:59:01 2014	(r340155)
@@ -8,12 +8,13 @@ MASTER_SITES=	SF
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	mva@FreeBSD.org
-COMMENT=	A Python package for the creation of encapsulated PostScript figures
+COMMENT=	Python package for creating encapsulated PostScript figures
 
 LICENSE=	GPLv2
 
-USE_PYTHON=	yes
-USE_PYDISTUTILS=yes
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 USE_TEX=	latex:build
 
 OPTIONS_DEFINE=		T1CODE KPATHSEA
@@ -21,34 +22,18 @@ OPTIONS_DEFAULT=	T1CODE KPATHSEA
 T1CODE_DESC=		Fast t1 font encoding/decoding
 KPATHSEA_DESC=		Python wrapper around kpathsea
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MT1CODE} || ${PORT_OPTIONS:MKPATHSEA}
-CFLAGS+=	-I${LOCALBASE}/include
-.endif
-
-.if ${PORT_OPTIONS:MT1CODE}
-PLIST_SUB+=	T1CODE=""
-.else
-PLIST_SUB+=	T1CODE="@comment "
-.endif
+T1CODE_CFLAGS=		-I${LOCALBASE}/include
+KPATHSEA_CFLAGS=	-I${LOCALBASE}/include
+KPATHSEA_LDFLAGS=	-L${LOCALBASE}/lib
 
-.if ${PORT_OPTIONS:MKPATHSEA}
-LDFLAGS+=	-L${LOCALBASE}/lib
-PLIST_SUB+=	KPATHSEA=""
-.else
-PLIST_SUB+=	KPATHSEA="@comment "
-.endif
+.include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MT1CODE} || ${PORT_OPTIONS:MKPATHSEA}
-do-patch:
+post-patch:
 .if ${PORT_OPTIONS:MT1CODE}
 	@${REINPLACE_CMD} -e 's|build_t1code=0|build_t1code=1|' ${WRKSRC}/setup.cfg
 .endif
 .if ${PORT_OPTIONS:MKPATHSEA}
 	@${REINPLACE_CMD} -e 's|build_pykpathsea=0|build_pykpathsea=1|' ${WRKSRC}/setup.cfg
 .endif
-.endif
 
 .include <bsd.port.mk>



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