diff options
author | mva <mva@FreeBSD.org> | 2014-02-23 17:41:15 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2014-02-23 17:41:15 +0800 |
commit | 819d08dd268da54ffad04399bebac8396abcffd5 (patch) | |
tree | ebe94614215bfc5c3f880c8af717b08e6557550f | |
parent | a6e08227f86961a84a4976ec6c250d869405220c (diff) | |
download | freebsd-ports-gnome-819d08dd268da54ffad04399bebac8396abcffd5.tar.gz freebsd-ports-gnome-819d08dd268da54ffad04399bebac8396abcffd5.tar.zst freebsd-ports-gnome-819d08dd268da54ffad04399bebac8396abcffd5.zip |
- Respect ETCDIR and DATADIR
- Limit to the supported python versions
- Convert to PYDISTUTILS_AUTOPLIST
PR: ports/185947
With hat: python@
-rw-r--r-- | textproc/archmage/Makefile | 11 | ||||
-rw-r--r-- | textproc/archmage/pkg-plist | 80 |
2 files changed, 8 insertions, 83 deletions
diff --git a/textproc/archmage/Makefile b/textproc/archmage/Makefile index e2574893c2cd..0e60bd41f6dc 100644 --- a/textproc/archmage/Makefile +++ b/textproc/archmage/Makefile @@ -6,6 +6,7 @@ PORTVERSION= 0.2.4 PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= SF +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Extensible reader/decompiler of files in CHM format @@ -17,16 +18,20 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/chm/chm.py:${PORTSDIR}/textproc/pychm \ 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/ diff --git a/textproc/archmage/pkg-plist b/textproc/archmage/pkg-plist deleted file mode 100644 index d4d16ba8c0d5..000000000000 --- a/textproc/archmage/pkg-plist +++ /dev/null @@ -1,80 +0,0 @@ -bin/archmage -etc/archmage/arch.conf -man/man1/archmage.1.gz -%%PYTHON_SITELIBDIR%%/archmod/CHM.py -%%PYTHON_SITELIBDIR%%/archmod/CHM.pyc -%%PYTHON_SITELIBDIR%%/archmod/CHM.pyo -%%PYTHON_SITELIBDIR%%/archmod/CHMParser.py -%%PYTHON_SITELIBDIR%%/archmod/CHMParser.pyc -%%PYTHON_SITELIBDIR%%/archmod/CHMParser.pyo -%%PYTHON_SITELIBDIR%%/archmod/CHMServer.py -%%PYTHON_SITELIBDIR%%/archmod/CHMServer.pyc -%%PYTHON_SITELIBDIR%%/archmod/CHMServer.pyo -%%PYTHON_SITELIBDIR%%/archmod/Cached.py -%%PYTHON_SITELIBDIR%%/archmod/Cached.pyc -%%PYTHON_SITELIBDIR%%/archmod/Cached.pyo -%%PYTHON_SITELIBDIR%%/archmod/__init__.py -%%PYTHON_SITELIBDIR%%/archmod/__init__.pyc -%%PYTHON_SITELIBDIR%%/archmod/__init__.pyo -%%PYTHON_SITELIBDIR%%/archmod/chmtotext.py -%%PYTHON_SITELIBDIR%%/archmod/chmtotext.pyc -%%PYTHON_SITELIBDIR%%/archmod/chmtotext.pyo -%%PYTHON_SITELIBDIR%%/archmod/htmldoc.py -%%PYTHON_SITELIBDIR%%/archmod/htmldoc.pyc -%%PYTHON_SITELIBDIR%%/archmod/htmldoc.pyo -%%PYTHON_SITELIBDIR%%/archmod/mod_chm.py -%%PYTHON_SITELIBDIR%%/archmod/mod_chm.pyc -%%PYTHON_SITELIBDIR%%/archmod/mod_chm.pyo -@dirrm %%PYTHON_SITELIBDIR%%/archmod -%%DATADIR%%/templates/arch_contents.html -%%DATADIR%%/templates/arch_css.css -%%DATADIR%%/templates/arch_frameset.html -%%DATADIR%%/templates/arch_header.html -%%DATADIR%%/templates/icons/0.gif -%%DATADIR%%/templates/icons/1.gif -%%DATADIR%%/templates/icons/10.gif -%%DATADIR%%/templates/icons/11.gif -%%DATADIR%%/templates/icons/12.gif -%%DATADIR%%/templates/icons/13.gif -%%DATADIR%%/templates/icons/14.gif -%%DATADIR%%/templates/icons/15.gif -%%DATADIR%%/templates/icons/16.gif -%%DATADIR%%/templates/icons/17.gif -%%DATADIR%%/templates/icons/18.gif -%%DATADIR%%/templates/icons/19.gif -%%DATADIR%%/templates/icons/2.gif -%%DATADIR%%/templates/icons/20.gif -%%DATADIR%%/templates/icons/21.gif -%%DATADIR%%/templates/icons/22.gif -%%DATADIR%%/templates/icons/23.gif -%%DATADIR%%/templates/icons/24.gif -%%DATADIR%%/templates/icons/25.gif -%%DATADIR%%/templates/icons/26.gif -%%DATADIR%%/templates/icons/27.gif -%%DATADIR%%/templates/icons/3.gif -%%DATADIR%%/templates/icons/35.gif -%%DATADIR%%/templates/icons/37.gif -%%DATADIR%%/templates/icons/39.gif -%%DATADIR%%/templates/icons/4.gif -%%DATADIR%%/templates/icons/5.gif -%%DATADIR%%/templates/icons/6.gif -%%DATADIR%%/templates/icons/7.gif -%%DATADIR%%/templates/icons/8.gif -%%DATADIR%%/templates/icons/9.gif -%%DATADIR%%/templates/icons/90.gif -%%DATADIR%%/templates/icons/91.gif -%%DATADIR%%/templates/icons/92.gif -%%DATADIR%%/templates/icons/93.gif -%%DATADIR%%/templates/icons/94.gif -%%DATADIR%%/templates/icons/95.gif -%%DATADIR%%/templates/icons/96.gif -%%DATADIR%%/templates/icons/97.gif -%%DATADIR%%/templates/icons/98.gif -%%DATADIR%%/templates/icons/99.gif -%%DATADIR%%/templates/icons/next.gif -%%DATADIR%%/templates/icons/prev.gif -%%DATADIR%%/templates/index.html -@dirrm %%DATADIR%%/templates/icons -@dirrm %%DATADIR%%/templates -@dirrm %%DATADIR%% -@dirrmtry etc/archmage |