| @@ -1,26 +1,31 @@ | | | @@ -1,26 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.26 2022/11/17 14:55:39 schmonz Exp $ | | 1 | # $NetBSD: Makefile,v 1.27 2022/12/13 11:57:05 schmonz Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= Text-Markdown-Discount-0.16 | | 4 | DISTNAME= Text-Markdown-Discount-0.16 |
5 | PKGNAME= p5-${DISTNAME} | | 5 | PKGNAME= p5-${DISTNAME} |
6 | CATEGORIES= textproc perl5 | | 6 | CATEGORIES= textproc perl5 |
7 | MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/} | | 7 | MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/} |
8 | | | 8 | |
9 | MAINTAINER= schmonz@NetBSD.org | | 9 | MAINTAINER= schmonz@NetBSD.org |
10 | HOMEPAGE= https://metacpan.org/release/Text-Markdown-Discount | | 10 | HOMEPAGE= https://metacpan.org/release/Text-Markdown-Discount |
11 | COMMENT= Convert Markdown to (X)HTML | | 11 | COMMENT= Convert Markdown to (X)HTML |
12 | LICENSE= ${PERL5_LICENSE} | | 12 | LICENSE= ${PERL5_LICENSE} |
13 | | | 13 | |
14 | PERL5_PACKLIST= auto/Text/Markdown/Discount/.packlist | | 14 | PERL5_PACKLIST= auto/Text/Markdown/Discount/.packlist |
15 | | | 15 | |
16 | SUBST_CLASSES+= paths | | 16 | SUBST_CLASSES+= paths |
17 | SUBST_FILES.paths= Makefile.PL | | 17 | SUBST_FILES.paths= Makefile.PL |
18 | SUBST_VARS.paths= PREFIX | | 18 | SUBST_VARS.paths= PREFIX |
19 | SUBST_STAGE.paths= pre-configure | | 19 | SUBST_STAGE.paths= pre-configure |
20 | | | 20 | |
21 | post-extract: | | 21 | # Avoid extracting the vendored discount library. We don't use it at all |
22 | cd ${WRKSRC} && rm -rf discount | | 22 | # (instead buildlinking textproc/discount), and it sometimes contains |
| | | 23 | # macOS xattrs that break extraction as root on other systems. |
| | | 24 | EXTRACT_OPTS= -X ${WRKDIR}/excludefile |
| | | 25 | pre-extract: |
| | | 26 | ${_EXTRACT_TAR} -ztf ${DISTDIR}/${DISTFILES} \ |
| | | 27 | | sort | grep /discount-2 > ${WRKDIR}/excludefile |
23 | | | 28 | |
24 | .include "../../textproc/discount/buildlink3.mk" | | 29 | .include "../../textproc/discount/buildlink3.mk" |
25 | .include "../../lang/perl5/module.mk" | | 30 | .include "../../lang/perl5/module.mk" |
26 | .include "../../mk/bsd.pkg.mk" | | 31 | .include "../../mk/bsd.pkg.mk" |