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:
Daniel Engberg 2024-05-19 11:12:21 +02:00
parent 48f2a1c5a8
commit 43ea95faf2

View file

@ -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