mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
69ad700f1e
Changes: https://github.com/asciidoc/asciidoc-py3/releases https://github.com/asciidoc/asciidoc-py3/blob/master/CHANGELOG.txt PR: 245723 Submitted by: antoine
39 lines
997 B
Makefile
39 lines
997 B
Makefile
# Created by: anholt@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= asciidoc
|
|
PORTVERSION= 9.0.0rc2
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Text document format for writing short documents and man pages
|
|
|
|
LICENSE= GPLv2 MIT
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= docbook-xsl>=0:textproc/docbook-xsl
|
|
|
|
USES= autoreconf gmake gnome python:3.5+ shebangfix
|
|
USE_GNOME= libxml2 libxslt
|
|
|
|
GNU_CONFIGURE= yes
|
|
NO_ARCH= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_PROJECT= asciidoc-py3
|
|
|
|
SHEBANG_GLOB= *.py
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^INSTALL_PROG/ s|INSTALL_PROGRAM|INSTALL_SCRIPT|; s|\.conf|&.sample|; s|python3 |${PYTHON_CMD} |' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/a2x.py
|
|
@${FIND} ${WRKSRC} -name '*.conf' | ${XARGS} -I % ${LN} % %.sample
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/asciidocapi.py ${STAGEDIR}${PYTHON_SITELIBDIR}/
|
|
|
|
.include <bsd.port.mk>
|