--- namazu2/Makefile Wed Aug 27 13:48:00 2003 +++ namazu2.patched/Makefile Sat Oct 25 14:20:28 2003 @@ -12,16 +12,17 @@ MASTER_SITES= http://www.namazu.org/stable/ PKGNAMESUFFIX= 2 -MAINTAINER= knu@FreeBSD.org -COMMENT= Full-text search system intended for easy use - PATCH_SITES= ${MASTER_SITES} PATCHFILES= ${DISTNAME}-de.diff PATCH_DIST_STRIP= -p1 -LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext +MAINTAINER= knu@FreeBSD.org +COMMENT= Full-text search system intended for easy use + BUILD_DEPENDS= ${PM_BASE}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic RUN_DEPENDS= ${PM_BASE}/File/MMagic.pm:${PORTSDIR}/devel/p5-File-MMagic +LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext \ + iconv.3:${PORTSDIR}/converters/libiconv # xlHtml:${PORTSDIR}/textproc/xlhtml \ # wvHtml:${PORTSDIR}/textproc/wv @@ -29,19 +30,13 @@ USE_PERL5= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-perl5="${PERL}" +CONFIGURE_ARGS= --with-perl5="${PERL}" \ + --with-libintl-prefix=${LOCALBASE} \ + --with-libiconv-prefix=${LOCALBASE} MAN1= namazu.1 mknmz.1 INSTALLS_SHLIB= yes -post-configure: - ${PERL} -i~ -pe 's,^(LIBS *= *)(.*),$$1 -L${LOCALBASE}/lib -lintl $$2\n,' ${WRKSRC}/nmz/Makefile - -pre-install: - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} PRE-INSTALL - -post-install: - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL .if defined(NOPORTDOCS) ${RM} -rf ${PREFIX}/share/namazu/doc .endif diff -ruN namazu2/pkg-deinstall namazu2.patched/pkg-deinstall --- namazu2/pkg-deinstall Tue Jan 14 12:10:07 2003 +++ namazu2.patched/pkg-deinstall Thu Jan 1 01:00:00 1970 @@ -1,29 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/databases/namazu2/pkg-deinstall,v 1.1 2003/01/14 11:10:07 knu Exp $ - -PATH=/bin:/usr/bin - -files="${PKG_PREFIX}/lib/charset.alias ${PKG_PREFIX}/share/locale/locale.alias" -sfx=.namazu2.backup - -case $2 in - DEINSTALL) - for f in $files; do - [ -f $f$sfx ] || continue - if [ $f -nt $f$sfx ]; then - cp -p $f $f$sfx - fi - done - ;; - - POST-DEINSTALL) - for f in $files; do - if [ -f $f$sfx ]; then - mv -f $f$sfx $f - fi - done - ;; -esac - -exit 0 diff -ruN namazu2/pkg-install namazu2.patched/pkg-install --- namazu2/pkg-install Mon Feb 3 10:36:54 2003 +++ namazu2.patched/pkg-install Thu Jan 1 01:00:00 1970 @@ -1,30 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/databases/namazu2/pkg-install,v 1.2 2003/02/01 10:36:05 knu Exp $ - -PATH=/bin:/usr/bin - -files="${PKG_PREFIX}/lib/charset.alias ${PKG_PREFIX}/share/locale/locale.alias" -sfx=.namazu2.backup - -case $2 in - PRE-INSTALL) - for f in $files; do - if [ -f $f ]; then - cp $f $f$sfx - fi - done - ;; - - POST-INSTALL) - for f in $files; do - if [ -f $f$sfx ]; then - touch $f$sfx - else - cp $f $f$sfx - fi - done - ;; -esac - -exit 0 diff -ruN namazu2/pkg-plist namazu2.patched/pkg-plist --- namazu2/pkg-plist Mon Jan 20 12:57:25 2003 +++ namazu2.patched/pkg-plist Sat Oct 25 14:17:40 2003 @@ -31,15 +31,11 @@ include/namazu/var.h include/namazu/wakati.h @dirrm include/namazu -@comment see pkg-{install,deinstall} for this file -lib/charset.alias lib/libnmz.a lib/libnmz.la lib/libnmz.so lib/libnmz.so.6 libexec/namazu.cgi -@comment see pkg-{install,deinstall} for this file -share/locale/locale.alias share/locale/es/LC_MESSAGES/namazu.mo share/locale/fr/LC_MESSAGES/namazu.mo share/locale/ja/LC_MESSAGES/namazu.mo