Skip to content

Commit

Permalink
textproc/asciidoc: Update to 10.1.1
Browse files Browse the repository at this point in the history
- Change MASTER_SITES to CHEESESHOP

Changes:	https://github.com/asciidoc-py/asciidoc-py/releases
  • Loading branch information
sunpoet committed Jan 28, 2022
1 parent 316c18c commit 3f32cca
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 176 deletions.
20 changes: 6 additions & 14 deletions textproc/asciidoc/Makefile
@@ -1,9 +1,9 @@
# Created by: anholt@FreeBSD.org

PORTNAME= asciidoc
PORTVERSION= 9.1.1
PORTVERSION= 10.1.1
CATEGORIES= textproc
MASTER_SITES= https://github.com/asciidoc/asciidoc-py3/releases/download/${PORTVERSION}/
MASTER_SITES= CHEESESHOP

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Text document format for writing short documents and man pages
Expand All @@ -14,21 +14,13 @@ LICENSE_COMB= multi
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= docbook-xsl>=0:textproc/docbook-xsl

USES= gmake gnome python:3.5+ shebangfix
USES= gnome python:3.5+ shebangfix
USE_PYTHON= autoplist distutils noflavors
USE_GNOME= libxml2 libxslt

GNU_CONFIGURE= yes
NO_ARCH= yes

SHEBANG_GLOB= *.py

post-patch:
@${REINPLACE_CMD} -e 's|python3 |${PYTHON_CMD} |' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${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}/
SHEBANG_FILES= asciidoc/resources/filters/*.py \
asciidoc/resources/filters/*/*.py

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions textproc/asciidoc/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1632227478
SHA256 (asciidoc-9.1.1.tar.gz) = ea39760ac2739496c14002902571592dc2ae2fa673296ec141a9e491d9c11fca
SIZE (asciidoc-9.1.1.tar.gz) = 1259206
TIMESTAMP = 1643382510
SHA256 (asciidoc-10.1.1.tar.gz) = 33ac648f7b38fa8712cfdbbfd2465a263fea2dcd106946fcf7d59ae6473b47c5
SIZE (asciidoc-10.1.1.tar.gz) = 214619
50 changes: 0 additions & 50 deletions textproc/asciidoc/files/patch-Makefile.in

This file was deleted.

11 changes: 0 additions & 11 deletions textproc/asciidoc/files/patch-a2x.py

This file was deleted.

10 changes: 10 additions & 0 deletions textproc/asciidoc/files/patch-asciidoc-a2x.py
@@ -0,0 +1,10 @@
--- asciidoc/a2x.py.orig 2021-12-20 19:54:07 UTC
+++ asciidoc/a2x.py
@@ -520,6 +520,7 @@ class A2X(AttrDict):
for attr in self.attributes:
self.asciidoc_opts.append(('--attribute', attr))
# self.xsltproc_opts += ' --nonet'
+ self.xsltproc_opts += ' --nonet --path %%LOCALBASE%%/share/xsl/docbook/manpages/'
if self.verbose:
self.asciidoc_opts.append(('--verbose',))
self.dblatex_opts += ' -V'
98 changes: 0 additions & 98 deletions textproc/asciidoc/pkg-plist

This file was deleted.

0 comments on commit 3f32cca

Please sign in to comment.