View | Details | Raw Unified | Return to bug 61254 | Differences between
and this patch

Collapse All | Expand All

(-)xmlcatmgr/Makefile (-14 / +43 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	xmlcatmgr
8
PORTNAME=	xmlcatmgr
9
PORTVERSION=	1.2
9
PORTVERSION=	2.0.a1
10
CATEGORIES=	textproc
10
CATEGORIES=	textproc
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	${PORTNAME}
12
MASTER_SITE_SUBDIR=	${PORTNAME}
13
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.a/alpha/}
13
14
14
MAINTAINER=	hrs@FreeBSD.org
15
MAINTAINER=	hrs@FreeBSD.org
15
COMMENT=	SGML and XML catalog manager
16
COMMENT=	SGML and XML catalog manager
16
17
17
BUILD_DEPENDS=	buildtool:${PORTSDIR}/devel/buildtool
18
19
MAN1=		xmlcatmgr.1
18
MAN1=		xmlcatmgr.1
20
19
21
do-configure:
20
HAS_CONFIGURE=	yes
22
	cd ${WRKSRC} && buildtool config -p ${PREFIX} \
21
23
		--dir-catalog=${PREFIX}/share/xml \
22
CONFIGURE_SCRIPT=	configure.sh
24
		--dir-doc=${DOCSDIR}
23
CONFIGURE_ARGS=		-D
25
24
CONFIGURE_ARGS+=	-p ${PREFIX}
26
do-build:
25
CONFIGURE_ARGS+=	-d ${DOCSDIR}
27
	cd ${WRKSRC} && buildtool build
26
CONFIGURE_ARGS+=	-c ${CATALOG_PORTS_XML}
28
27
CONFIGURE_ENV=		SED="${SED}"
29
do-install:
28
CONFIGURE_ENV+=		INSTALL_DATA="${INSTALL_DATA}"
30
	cd ${WRKSRC} && buildtool install
29
CONFIGURE_ENV+=		INSTALL_DIR="${INSTALL_DATA_DIR}"
31
	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
30
CONFIGURE_ENV+=		INSTALL_PROGRAM="${INSTALL_PROGRAM}"
31
CONFIGURE_ENV+=		NOPORTDOCS="${NOPORTDOCS}"
32
33
BUILD_WRKSRC=		${WRKSRC}/work
34
INSTALL_WRKSRC=		${WRKSRC}/work
35
36
COMMONVARS=		${WRKDIR}/commonvars.sh
37
XMLCATMGR?=		${PREFIX}/bin/xmlcatmgr
38
CATALOG_MASTER_SGML?=	${PREFIX}/share/sgml/catalog
39
CATALOG_PORTS_SGML?=	${PREFIX}/share/sgml/catalog.ports
40
CATALOG_MASTER_XML?=	${PREFIX}/share/xml/catalog
41
CATALOG_PORTS_XML?=	${PREFIX}/share/xml/catalog.ports
42
43
PKGINSTALL=		${WRKDIR}/pkg-install.sh
44
PKGDEINSTALL=		${WRKDIR}/pkg-deinstall.sh
45
46
post-build:
47
	${TOUCH} ${COMMONVARS}
48
	${ECHO} '#!/bin/sh' >> ${COMMONVARS}
49
	${ECHO} 'PATH=$${PATH}:/bin:/usr/bin:${LOCALBASE}/bin:${X11BASE}/bin' >> ${COMMONVARS}
50
	${ECHO} 'export PATH;' >> ${COMMONVARS}
51
.for V in XMLCATMGR CATALOG_MASTER_SGML CATALOG_MASTER_XML CATALOG_PORTS_SGML CATALOG_PORTS_XML
52
	${ECHO} '${V}=${${V}}' >> ${COMMONVARS}
53
.endfor
54
	${CAT} ${COMMONVARS} ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
55
	${CAT} ${COMMONVARS} ${FILESDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
56
	${CHMOD} 0555 ${PKGINSTALL} ${PKGDEINSTALL}
57
58
post-install:
59
	@${PKGINSTALL} ${PKGNAME} POST-INSTALL
60
	@${CAT} ${PKGMESSAGE}
32
61
33
.include <bsd.port.mk>
62
.include <bsd.port.mk>
(-)xmlcatmgr/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (xmlcatmgr-1.2.tar.gz) = 1a1b0f869d7a45b93c8270e88fd93550
1
MD5 (xmlcatmgr-2.0alpha1.tar.gz) = a0b81617f6a979b00871df13ee6a9704
(-)xmlcatmgr/pkg-deinstall (-36 lines)
Removed Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/textproc/xmlcatmgr/pkg-deinstall,v 1.1 2003/06/30 13:32:18 kuriyama Exp $
3
4
PATH=${PATH}:/bin:/usr/bin:${LOCALBASE}/bin:${X11BASE}/bin
5
export PATH
6
7
CATALOG_MASTER_SGML=${PKG_PREFIX}/share/sgml/catalog
8
CATALOG_MASTER_XML=${PKG_PREFIX}/share/xml/catalog
9
CATALOG_PORTS_SGML=${PKG_PREFIX}/share/sgml/catalog.ports
10
CATALOG_PORTS_XML=${PKG_PREFIX}/share/xml/catalog.ports
11
12
XMLCATMGR=${PKG_PREFIX}/bin/xmlcatmgr
13
14
case $2 in
15
DEINSTALL)
16
17
${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} remove catalog.ports
18
if [ ! -s ${CATALOG_MASTER_SGML} ]; then
19
    rm -f ${CATALOG_MASTER_SGML}
20
fi
21
if [ ! -s ${CATALOG_PORTS_SGML} ]; then
22
    rm -f ${CATALOG_PORTS_SGML}
23
fi
24
25
T=`mktemp /tmp/_catalog_xml.XXXXXX`
26
${XMLCATMGR} -c ${CATALOG_MASTER_XML} remove ${CATALOG_PORTS_XML}
27
${XMLCATMGR} -c /dev/stdout create > ${T}
28
if cmp -s ${T} ${CATALOG_MASTER_XML} ]; then
29
    rm -f ${CATALOG_MASTER_XML}
30
fi
31
if cmp -s ${T} ${CATALOG_PORTS_XML} ]; then
32
    rm -f ${CATALOG_PORTS_XML}
33
fi
34
rm -f ${T}
35
;;
36
esac
(-)xmlcatmgr/pkg-descr (-9 / +5 lines)
Lines 1-11 Link Here
1
xmlcatmgr is a command line script used to manipulate SGML and XML catalogs.
1
XML Catalog Manager (xmlcatmgr in its short form) is a small utility
2
It is designed with simplicity in mind:  it does not depend on external
2
used to manipulate SGML and XML catalogs. It is extremely small and
3
programs nor libraries, so it is ideal to manage catalog files from inside
3
lightweight, requiring no more dependancies than an awk and a shell
4
pkgsrc.  It is also useful to handle shared directories like share/sgml and
4
interpreter. Basically, it allows adding and removing entries from
5
share/xml.
5
catalogs, in a completely automated way.
6
7
XML catalogs are files that contain mappings from public identifiers to
8
system identifiers.  This allows XML parsers to locate public identifiers
9
in the local system.
10
6
11
WWW: http://xmlcatmgr.sourceforge.net/
7
WWW: http://xmlcatmgr.sourceforge.net/
(-)xmlcatmgr/pkg-install (-39 lines)
Removed Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/textproc/xmlcatmgr/pkg-install,v 1.1 2003/06/30 13:32:18 kuriyama Exp $
3
4
PATH=${PATH}:/bin:/usr/bin:${LOCALBASE}/bin:${X11BASE}/bin
5
export PATH
6
7
CATALOG_MASTER_SGML=${PKG_PREFIX}/share/sgml/catalog
8
CATALOG_MASTER_XML=${PKG_PREFIX}/share/xml/catalog
9
CATALOG_PORTS_SGML=${PKG_PREFIX}/share/sgml/catalog.ports
10
CATALOG_PORTS_XML=${PKG_PREFIX}/share/xml/catalog.ports
11
12
XMLCATMGR=${PKG_PREFIX}/bin/xmlcatmgr
13
14
case $2 in
15
POST-INSTALL)
16
17
if [ ! -r ${CATALOG_MASTER_SGML} ]; then
18
    ${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} create
19
fi
20
21
${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} remove catalog.ports
22
${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} add CATALOG catalog.ports
23
24
if [ ! -r ${CATALOG_PORTS_SGML} ]; then
25
    ${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} create
26
fi
27
28
if [ ! -r ${CATALOG_MASTER_XML} ]; then
29
    ${XMLCATMGR} -c ${CATALOG_MASTER_XML} create
30
fi
31
32
${XMLCATMGR} -c ${CATALOG_MASTER_XML} remove ${CATALOG_PORTS_XML}
33
${XMLCATMGR} -c ${CATALOG_MASTER_XML} add nextCatalog ${CATALOG_PORTS_XML}
34
35
if [ ! -r ${CATALOG_PORTS_XML} ]; then
36
    ${XMLCATMGR} -c ${CATALOG_PORTS_XML} create
37
fi
38
;;
39
esac
(-)xmlcatmgr/pkg-plist (-1 / +2 lines)
Lines 4-7 Link Here
4
%%PORTDOCS%%%%DOCSDIR%%/COPYING
4
%%PORTDOCS%%%%DOCSDIR%%/COPYING
5
%%PORTDOCS%%%%DOCSDIR%%/PEOPLE
5
%%PORTDOCS%%%%DOCSDIR%%/PEOPLE
6
%%PORTDOCS%%%%DOCSDIR%%/README
6
%%PORTDOCS%%%%DOCSDIR%%/README
7
@dirrm %%PORTDOCS%%%%DOCSDIR%%
7
%%PORTDOCS%%%%DOCSDIR%%/TODO
8
%%PORTDOCS%%@dirrm %%DOCSDIR%%
(-)xmlcatmgr/files/patch-configure.sh (+22 lines)
Added Link Here
1
--- configure.sh.orig	Tue Dec 23 11:27:37 2003
2
+++ configure.sh	Mon Jan 12 17:37:47 2004
3
@@ -462,16 +462,18 @@
4
 install: all
5
 EOF
6
 
7
-install_dir ${DIR_DOC} >> ${mkfile}
8
 install_dir ${DIR_EXEC} >> ${mkfile}
9
 install_dir ${DIR_MAN}/man1 >> ${mkfile}
10
 install_program xmlcatmgr ${DIR_EXEC}/xmlcatmgr >> ${mkfile}
11
 install_data xmlcatmgr.1 ${DIR_MAN}/man1/xmlcatmgr.1 >> ${mkfile}
12
+if [ ! ${NOPORTDOCS} ]; then
13
+install_dir ${DIR_DOC} >> ${mkfile}
14
 install_data ${TOPDIR}/CHANGES ${DIR_DOC}/CHANGES >> ${mkfile}
15
 install_data ${TOPDIR}/COPYING ${DIR_DOC}/COPYING >> ${mkfile}
16
 install_data ${TOPDIR}/PEOPLE ${DIR_DOC}/PEOPLE >> ${mkfile}
17
 install_data ${TOPDIR}/README ${DIR_DOC}/README >> ${mkfile}
18
 install_data ${TOPDIR}/TODO ${DIR_DOC}/TODO >> ${mkfile}
19
+fi
20
 
21
 echo "# End of generated Makefile." >> ${mkfile}
22
 
(-)xmlcatmgr/files/pkg-deinstall.in (+32 lines)
Added Link Here
1
# $FreeBSD$
2
3
case $2 in
4
DEINSTALL)
5
6
T=/tmp/catalog.$$
7
8
${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} remove catalog.ports
9
${XMLCATMGR} -sc ${T} create
10
if cmp -s ${T} ${CATALOG_MASTER_SGML} ]; then
11
	echo " + Removing ${CATALOG_MASTER_SGML}.  It is empty."
12
	rm -f ${CATALOG_MASTER_SGML}
13
fi
14
if cmp -s ${T} ${CATALOG_PORTS_SGML} ]; then
15
	echo " + Removing ${CATALOG_PORTS_SGML}.  It is empty."
16
	rm -f ${CATALOG_PORTS_SGML}
17
fi
18
rm -f ${T}
19
20
${XMLCATMGR} -c ${CATALOG_MASTER_XML} remove ${CATALOG_PORTS_XML}
21
${XMLCATMGR} -c ${T} create
22
if cmp -s ${T} ${CATALOG_MASTER_XML} ]; then
23
	echo " + Removing ${CATALOG_MASTER_XML}.  It is empty."
24
	rm -f ${CATALOG_MASTER_XML}
25
fi
26
if cmp -s ${T} ${CATALOG_PORTS_XML} ]; then
27
	echo " + Removing ${CATALOG_PORTS_XML}.  It is empty."
28
	rm -f ${CATALOG_PORTS_XML}
29
fi
30
rm -f ${T}
31
;;
32
esac
(-)xmlcatmgr/files/pkg-install.in (+36 lines)
Added Link Here
1
# $FreeBSD$
2
3
case $2 in
4
POST-INSTALL)
5
6
if [ ! -r ${CATALOG_MASTER_SGML} ]; then
7
	echo " + Creating ${CATALOG_MASTER_SGML}"
8
	${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} create
9
fi
10
11
if ! ${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} lookup catalog.ports > /dev/null 2>&1; then
12
	echo " + Registering CATALOG catalog.ports (SGML)"
13
	${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} add CATALOG catalog.ports
14
fi
15
16
if [ ! -r ${CATALOG_PORTS_SGML} ]; then
17
	echo " + Creating ${CATALOG_PORTS_SGML}"
18
	${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} create
19
fi
20
21
if [ ! -r ${CATALOG_MASTER_XML} ]; then
22
	echo " + Creating ${CATALOG_MASTER_XML}"
23
	${XMLCATMGR} -c ${CATALOG_MASTER_XML} create
24
fi
25
26
if ! ${XMLCATMGR} -c ${CATALOG_MASTER_XML} lookup ${CATALOG_PORTS_XML} > /dev/null 2>&1 ; then
27
	echo " + Registering nextCatalog catalog.ports (XML)"
28
	${XMLCATMGR} -c ${CATALOG_MASTER_XML} add nextCatalog ${CATALOG_PORTS_XML}
29
fi
30
31
if [ ! -r ${CATALOG_PORTS_XML} ]; then
32
	echo " + Creating ${CATALOG_PORTS_XML}"
33
	${XMLCATMGR} -c ${CATALOG_PORTS_XML} create
34
fi
35
;;
36
esac

Return to bug 61254