svn commit: r345693 - head/textproc/archmage

Marcus von Appen mva at FreeBSD.org
Sun Feb 23 09:41:16 UTC 2014


Author: mva
Date: Sun Feb 23 09:41:15 2014
New Revision: 345693
URL: http://svnweb.freebsd.org/changeset/ports/345693
QAT: https://qat.redports.org/buildarchive/r345693/

Log:
  - Respect ETCDIR and DATADIR
  - Limit to the supported python versions
  - Convert to PYDISTUTILS_AUTOPLIST
  
  PR:		ports/185947
  With hat:	python@

Deleted:
  head/textproc/archmage/pkg-plist
Modified:
  head/textproc/archmage/Makefile

Modified: head/textproc/archmage/Makefile
==============================================================================
--- head/textproc/archmage/Makefile	Sun Feb 23 09:14:50 2014	(r345692)
+++ head/textproc/archmage/Makefile	Sun Feb 23 09:41:15 2014	(r345693)
@@ -6,6 +6,7 @@ PORTVERSION=	0.2.4
 PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	SF
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Extensible reader/decompiler of files in CHM format
@@ -17,16 +18,20 @@ RUN_DEPENDS=	${PYTHON_SITELIBDIR}/chm/ch
 
 NO_BUILD=	yes
 USE_BZIP2=	yes
-USE_PYTHON=	yes
+USE_PYTHON=		2
 USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+PLIST_FILES=	man/man1/archmage.1.gz
 
 post-extract:
 	@${GUNZIP_CMD} ${WRKSRC}/${PORTNAME}.1.gz
 
 post-patch:
 	@${REINPLACE_CMD} -e "s,/usr/share/archmage,${DATADIR}," ${WRKSRC}/arch.conf
-	@${REINPLACE_CMD} -e "s,/etc,${PREFIX}/etc," ${WRKSRC}/archmod/CHM.py
-	@${REINPLACE_CMD} -e "s,/etc,etc,;/archmage.1/d" ${WRKSRC}/setup.py
+	@${REINPLACE_CMD} -e "s,/etc/archmage,${ETCDIR}," ${WRKSRC}/archmod/__init__.py
+	@${REINPLACE_CMD} -e "s,/etc/archmage,${ETCDIR},;/archmage.1/d; \
+		s,share/archmage,${DATADIR_REL}," ${WRKSRC}/setup.py
 
 post-install:
 	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/


More information about the svn-ports-all mailing list