View | Details | Raw Unified | Return to bug 53822
Collapse All | Expand All

(-)tei-p4/Makefile (-6 / +10 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	tei
8
PORTNAME=	tei
9
PORTVERSION=	p4
9
PORTVERSION=	p4
10
PORTREVISION=	1
10
CATEGORIES=	textproc
11
CATEGORIES=	textproc
11
MASTER_SITES=	http://www.tei-c.org/P4X/DTD/
12
MASTER_SITES=	http://www.tei-c.org/P4X/DTD/
12
DISTNAME=	dtd
13
DISTNAME=	dtd
Lines 14-31 Link Here
14
MAINTAINER=	henrik.motakef@web.de
15
MAINTAINER=	henrik.motakef@web.de
15
COMMENT=	DTD of the Text Encoding Initiative
16
COMMENT=	DTD of the Text Encoding Initiative
16
17
17
RUN_DEPENDS=	${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
18
RUN_DEPENDS=	${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
18
19
19
USE_ZIP=	yes
20
USE_ZIP=	yes
20
NO_BUILD=	yes
21
NO_BUILD=	yes
21
NO_WRKSUBDIR=	yes
22
NO_WRKSUBDIR=	yes
22
PLIST_SUB=	DTD_NAME=${PORTNAME} DTD_VERSION=${PORTVERSION} \
23
PLIST_SUB=	XMLCATMGR=${XMLCATMGR} \
23
		MKCATALOG=${MKCATALOG}
24
		DTDDIR=${DTDDIR} \
25
		CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
24
26
25
DTD=		dtd.zip
27
DTD=		dtd.zip
26
SGMLDIR=	${PREFIX}/share/sgml
28
SGMLDIR=	${PREFIX}/share/sgml
27
INSTDIR=	${SGMLDIR}/${PORTNAME}/${PORTVERSION}
29
INSTDIR=	${SGMLDIR}/${PORTNAME}/${PORTVERSION}
28
MKCATALOG=	${PREFIX}/sbin/mkcatalog
30
DTDDIR=		${PORTNAME}/${PORTVERSION}
31
XMLCATMGR=	${LOCALBASE}/bin/xmlcatmgr
32
CATALOG_PORTS_SGML=	${PREFIX}/share/sgml/catalog.ports
29
33
30
pre-install:
34
pre-install:
31
	@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
35
	@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
Lines 35-43 Link Here
35
	${INSTALL_DATA} ${WRKSRC}/*.ent ${INSTDIR}
39
	${INSTALL_DATA} ${WRKSRC}/*.ent ${INSTDIR}
36
	${INSTALL_DATA} ${WRKSRC}/*.dec ${INSTDIR}
40
	${INSTALL_DATA} ${WRKSRC}/*.dec ${INSTDIR}
37
	${INSTALL_DATA} ${WRKSRC}/teicatalog.xml ${INSTDIR}
41
	${INSTALL_DATA} ${WRKSRC}/teicatalog.xml ${INSTDIR}
38
	${SED} -e "s!&DTDpath;!${INSTDIR}/!" ${WRKSRC}/catalog.tei > ${INSTDIR}/catalog
42
	${SED} -e "s!&DTDpath;!!" ${WRKSRC}/catalog.tei > ${INSTDIR}/catalog
39
43
40
post-install:
44
post-install:
41
	@${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION}
45
	${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${DTDDIR}/catalog 
42
46
43
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)tei-p4/pkg-plist (-2 / +2 lines)
Lines 1-4 Link Here
1
@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%/%%DTD_VERSION%%
1
@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTDDIR%%/catalog
2
share/sgml/tei/p4/dummy.dtd
2
share/sgml/tei/p4/dummy.dtd
3
share/sgml/tei/p4/teicatalog.xml
3
share/sgml/tei/p4/teicatalog.xml
4
share/sgml/tei/p4/tei2.dtd
4
share/sgml/tei/p4/tei2.dtd
Lines 53-58 Link Here
53
share/sgml/tei/p4/teilite.dec
53
share/sgml/tei/p4/teilite.dec
54
share/sgml/tei/p4/teilitex.dec
54
share/sgml/tei/p4/teilitex.dec
55
share/sgml/tei/p4/catalog
55
share/sgml/tei/p4/catalog
56
@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%%
56
@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTDDIR%%/catalog
57
@dirrm share/sgml/tei/p4/
57
@dirrm share/sgml/tei/p4/
58
@unexec rmdir %D/share/sgml/tei 2>/dev/null || true
58
@unexec rmdir %D/share/sgml/tei 2>/dev/null || true

Return to bug 53822