mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
chinese/libpinyin: Switch DB backend and improve port
* Switch to DISTVERSION * Use GitHub as primary download site and Sourceforge as fallback * Use USES= localbase:ldflags helper * Switch from DBD5 (deprecated) to KyotoCabinet as backend * Remove GNU_CONFIGURE_MANPREFIX PR: 279124 Reviewed by: Zhihao Yuan <lichray@gmail.com> (maintainer)
This commit is contained in:
parent
48f2a1c5a8
commit
43ea95faf2
1 changed files with 12 additions and 10 deletions
|
@ -1,8 +1,9 @@
|
|||
PORTNAME= libpinyin
|
||||
PORTVERSION= 2.8.1
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 2.8.1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= chinese textproc
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
|
||||
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ \
|
||||
SF/${PORTNAME}/${PORTNAME}
|
||||
|
||||
MAINTAINER= lichray@gmail.com
|
||||
COMMENT= Library to deal with pinyin
|
||||
|
@ -11,18 +12,19 @@ WWW= https://github.com/libpinyin/libpinyin
|
|||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USES= bdb compiler:c++11-lang gmake gnome libtool pathfix pkgconfig
|
||||
USE_GNOME= glib20
|
||||
LIB_DEPENDS= libkyotocabinet.so:databases/kyotocabinet
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
|
||||
USES= compiler:c++11-lang gmake gnome libtool localbase:ldflags \
|
||||
pathfix pkgconfig
|
||||
USE_GNOME= glib20
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CONFIGURE_ARGS+=CPPFLAGS="-I${LOCALBASE}/include \
|
||||
-I${BDB_INCLUDE_DIR}" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib -l${BDB_LIB_NAME}"
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
CONFIGURE_ARGS= --with-dbm=KyotoCabinet
|
||||
|
||||
OPTIONS_DEFINE= NLS
|
||||
|
||||
NLS_USES= gettext
|
||||
|
|
Loading…
Add table
Reference in a new issue