blob: 1f86b2b63fdada73972bfa33fe8e8c131f0c7a6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# New ports collection makefile for: asciidoc
# Date created: 9 Feb 2006
# Whom: anholt@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= asciidoc
PORTVERSION= 7.1.2
CATEGORIES= textproc
MASTER_SITES= http://www.methods.co.nz/asciidoc/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= anholt@FreeBSD.org
COMMENT= A text document format for writing short documents and man pages
USE_PYTHON= yes
NO_BUILD= yes
MAN1= a2x.1 asciidoc.1
pre-patch:
${REINPLACE_CMD} \
-e "s|/bin/bash|/usr/bin/env bash|g" \
-e "s|/etc/asciidoc|${PREFIX}/etc/asciidoc|g" \
${WRKSRC}/a2x
${REINPLACE_CMD} \
-e "s|/etc/asciidoc|${PREFIX}/etc/asciidoc|g" \
${WRKSRC}/asciidoc.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/asciidoc.py ${PREFIX}/bin/asciidoc
${INSTALL_SCRIPT} ${WRKSRC}/a2x ${PREFIX}/bin
${MKDIR} ${PREFIX}/etc/asciidoc
${INSTALL_DATA} ${WRKSRC}/*.conf ${PREFIX}/etc/asciidoc
${MKDIR} ${PREFIX}/etc/asciidoc/filters
${INSTALL_DATA} ${WRKSRC}/filters/code-filter.conf \
${PREFIX}/etc/asciidoc/filters
${INSTALL_SCRIPT} ${WRKSRC}/filters/code-filter.py \
${PREFIX}/etc/asciidoc/filters
${MKDIR} ${PREFIX}/etc/asciidoc/docbook-xsl
${INSTALL_DATA} ${WRKSRC}/docbook-xsl/*.xsl \
${PREFIX}/etc/asciidoc/docbook-xsl
${MKDIR} ${PREFIX}/etc/asciidoc/stylesheets
${INSTALL_DATA} ${WRKSRC}/stylesheets/*.css \
${PREFIX}/etc/asciidoc/stylesheets
${MKDIR} ${PREFIX}/etc/asciidoc/images/icons/callouts
${INSTALL_DATA} ${WRKSRC}/images/icons/*.png \
${PREFIX}/etc/asciidoc/images/icons
${INSTALL_DATA} ${WRKSRC}/images/icons/callouts/* \
${PREFIX}/etc/asciidoc/images/icons/callouts
${INSTALL_MAN} ${WRKSRC}/doc/a2x.1 ${WRKSRC}/doc/asciidoc.1 \
${PREFIX}/man/man1
.include <bsd.port.mk>
|