diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-09-11 20:15:09 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-09-11 20:15:09 +0000 |
commit | 64d8b4a930191570a6cc4bc3d36910d744c737dc (patch) | |
tree | bc196047cf0d752b3cd66f208776a4630ba36fe0 | |
parent | 84512e00c3eacf265984e6ebb8997b0913a50407 (diff) | |
download | ports-64d8b4a930191570a6cc4bc3d36910d744c737dc.tar.gz ports-64d8b4a930191570a6cc4bc3d36910d744c737dc.zip |
Notes
-rw-r--r-- | net/gnu-dico/Makefile | 101 | ||||
-rw-r--r-- | net/gnu-dico/distinfo | 5 | ||||
-rw-r--r-- | net/gnu-dico/pkg-plist | 9 |
3 files changed, 42 insertions, 73 deletions
diff --git a/net/gnu-dico/Makefile b/net/gnu-dico/Makefile index 5a7b4ea5f756..6f31f38d1122 100644 --- a/net/gnu-dico/Makefile +++ b/net/gnu-dico/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= dico -PORTVERSION= 2.2 -PORTREVISION= 6 +PORTVERSION= 2.3 CATEGORIES= net textproc MASTER_SITES= GNU PKGNAMEPREFIX= gnu- @@ -14,89 +13,51 @@ COMMENT= Flexible modular implementation of DICT server LIB_DEPENDS= libltdl.so:devel/libltdl USE_LDCONFIG= yes -USES= tar:xz gmake libtool +USES= tar:xz gmake libtool localbase pkgconfig GNU_CONFIGURE= yes -CFLAGS+= -Wno-error=return-type -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --localstatedir=/var -OPTIONS_DEFINE= PYTHON GUILE PCRE GSASL PAM LDAP -OPTIONS_DEFAULT= PYTHON GUILE PCRE +INFO= dico + +PLIST_SUB= PORTVERSION=${PORTVERSION} +SUB_FILES= pkg-message +USE_RC_SUBR= dicod + +OPTIONS_DEFINE= PYTHON GUILE PCRE GSASL PAM LDAP NLS +OPTIONS_DEFAULT= PYTHON PCRE +OPTIONS_SUB= yes GSASL_DESC= GSASL support -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MPYTHON} -USES+= python -CONFIGURE_ENV+= PYTHON_CONFIG=${PYTHON_CMD}-config -PLIST_SUB+= PYTHON="" -.else -CONFIGURE_ARGS+=--without-python -PLIST_SUB+= PYTHON="@comment " -.endif - -.if ${PORT_OPTIONS:MGUILE} -LIB_DEPENDS+= libguile.so:lang/guile -PLIST_SUB+= GUILE="" -.else -CONFIGURE_ARGS+=--without-guile -PLIST_SUB+= GUILE="@comment " -.endif - -.if ${PORT_OPTIONS:MPCRE} -LIB_DEPENDS+= libpcre.so:devel/pcre -PLIST_SUB+= PCRE="" -.else -CONFIGURE_ARGS+=--without-pcre -PLIST_SUB+= PCRE="@comment " -.endif - -.if ${PORT_OPTIONS:MGSASL} -LIB_DEPENDS+= libgsasl.so:security/gsasl -CONFIGURE_ARGS+=--with-gsasl -.else -CONFIGURE_ARGS+=--without-gsasl -.endif - -.if ${PORT_OPTIONS:MPAM} -PLIST_SUB+= PAM="" -CONFIGURE_ARGS+=--enable-pam -.else -PLIST_SUB+= PAM="@comment " -CONFIGURE_ARGS+=--disable-pam -.endif - -.if ${PORT_OPTIONS:MLDAP} -USE_OPENLDAP= yes -PLIST_SUB+= LDAP="" -.else -CONFIGURE_ARGS+=--without-ldap -PLIST_SUB+= LDAP="@comment " -.endif - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif +PYTHON_USES= python +PYTHON_CONFIGURE_ENV= PYTHON_CONFIG=${PYTHON_CMD}-config +PYTHON_CONFIGURE_OFF= --without-python -INFO= dico +GUILE_LIB_DEPENDS= libguile-2.0.so:lang/guile2 +GUILE_CONFIGURE_OFF= --without-guile -PLIST_SUB+= PORTVERSION=${PORTVERSION} -SUB_FILES+= pkg-message -USE_RC_SUBR= dicod +PCRE_LIB_DEPENDS= libpcre.so:devel/pcre +PCRE_CONFIGURE_OFF= --without-pcre + +GSASL_LIB_DEPENDS= libgsasl.so:security/gsasl +GSASL_CONFIGURE_WITH= gsasl + +PAM_CONFIGURE_ENABLE= pam + +LDAP_USE= OPENLDAP=yes +LDAP_CONFIGURE_OFF= --without-ldap + +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls post-patch: @${REINPLACE_CMD} 's/@bindir@/@sbindir@/' ${WRKSRC}/dicod/Makefile.in @${REINPLACE_CMD} 's/(bindir)..dir/&\/gdico/' ${WRKSRC}/dico/Makefile.in @${REINPLACE_CMD} '/INSTALL.*charset/d' ${WRKSRC}/gnu/Makefile.in @${REINPLACE_CMD} 's/python-config/$${PYTHON_CONFIG}/' ${WRKSRC}/configure + @${REINPLACE_CMD} 's/conf.5in dico/conf.5 dico/' ${WRKSRC}/doc/Makefile.in post-install: - @${INSTALL_DATA} ${FILESDIR}/dicod.conf ${STAGEDIR}${PREFIX}/etc/dicod.conf.sample + ${INSTALL_DATA} ${FILESDIR}/dicod.conf ${STAGEDIR}${PREFIX}/etc/dicod.conf.sample .include <bsd.port.mk> diff --git a/net/gnu-dico/distinfo b/net/gnu-dico/distinfo index 1b0632168792..cc1ec2fba421 100644 --- a/net/gnu-dico/distinfo +++ b/net/gnu-dico/distinfo @@ -1,2 +1,3 @@ -SHA256 (dico-2.2.tar.xz) = c474931e4e6f31fcff247f181d48448f18be4091750843536840f472809ef212 -SIZE (dico-2.2.tar.xz) = 1445224 +TIMESTAMP = 1473624817 +SHA256 (dico-2.3.tar.xz) = f38afa5771a70f2d3d72c409d664c20456de874f93d8b391141ba45ee3077e8d +SIZE (dico-2.3.tar.xz) = 1607960 diff --git a/net/gnu-dico/pkg-plist b/net/gnu-dico/pkg-plist index 08764d4f5f3e..e3e82188bc68 100644 --- a/net/gnu-dico/pkg-plist +++ b/net/gnu-dico/pkg-plist @@ -27,6 +27,8 @@ lib/dico/gcide.so %%GUILE%%lib/dico/guile.so %%LDAP%%lib/dico/ldap.a %%LDAP%%lib/dico/ldap.so +lib/dico/metaphone2.a +lib/dico/metaphone2.so lib/dico/nprefix.a lib/dico/nprefix.so lib/dico/outline.a @@ -48,9 +50,14 @@ lib/libdico.so lib/libdico.so.1 lib/libdico.so.1.0.0 libexec/idxgcide +man/man1/dico.1.gz +man/man5/dicod.conf.5.gz +man/man8/dicod.8.gz sbin/dicod %%DATADIR%%/%%PORTVERSION%%/include/pp-setup +%%NLS%%share/locale/da/LC_MESSAGES/dico.mo +%%NLS%%share/locale/de/LC_MESSAGES/dico.mo %%NLS%%share/locale/fi/LC_MESSAGES/dico.mo +%%NLS%%share/locale/fr/LC_MESSAGES/dico.mo %%NLS%%share/locale/pl/LC_MESSAGES/dico.mo %%NLS%%share/locale/uk/LC_MESSAGES/dico.mo -%%GUILE%%@dir share/guile/site/dico |