summaryrefslogtreecommitdiff
path: root/chinese/libpinyin
diff options
context:
space:
mode:
authorCharlie Li <vishwin@FreeBSD.org>2023-03-12 08:43:46 -0400
committerCharlie Li <vishwin@FreeBSD.org>2023-03-12 20:16:05 -0400
commit6c8bee42bcfcbfeae5f0ab4f266301f3274be714 (patch)
treed811a7a98c70c987a346844ec17e11bdfd37564b /chinese/libpinyin
parentdevel/vexcl: fix build without libomp (diff)
chinese/libpinyin: update to 2.8.1
- correct LICENSE and specify LICENSE_FILE - bump consumers due to ABI version change Changes: https://github.com/libpinyin/libpinyin/compare/2.6.2...2.8.1 Approved by: lichray[at]gmail[dot]com (maintainer) PR: 270155
Diffstat (limited to 'chinese/libpinyin')
-rw-r--r--chinese/libpinyin/Makefile13
-rw-r--r--chinese/libpinyin/distinfo6
-rw-r--r--chinese/libpinyin/pkg-plist4
3 files changed, 11 insertions, 12 deletions
diff --git a/chinese/libpinyin/Makefile b/chinese/libpinyin/Makefile
index db4a331a9263..fdd56fa2e907 100644
--- a/chinese/libpinyin/Makefile
+++ b/chinese/libpinyin/Makefile
@@ -1,5 +1,5 @@
PORTNAME= libpinyin
-PORTVERSION= 2.6.2
+PORTVERSION= 2.8.1
CATEGORIES= chinese textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
@@ -7,7 +7,8 @@ MAINTAINER= lichray@gmail.com
COMMENT= Library to deal with pinyin
WWW= https://github.com/libpinyin/libpinyin
-LICENSE= GPLv2
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= bdb compiler:c++11-lang gmake gnome libtool pathfix pkgconfig
USE_GNOME= glib20
@@ -18,15 +19,13 @@ USE_LDCONFIG= yes
CONFIGURE_ARGS+=CPPFLAGS="-I${LOCALBASE}/include \
-I${BDB_INCLUDE_DIR}" \
LDFLAGS="-L${LOCALBASE}/lib -l${BDB_LIB_NAME}"
-INSTALL_TARGET=install-strip
+INSTALL_TARGET= install-strip
OPTIONS_DEFINE= NLS
NLS_USES= gettext
-PLIST_SUB+= VER=${PORTVERSION}
-
-post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpinyin.so.13.0.0
+PLIST_SUB+= VER=${PORTVERSION} \
+ ABIVER=15
.include <bsd.port.mk>
diff --git a/chinese/libpinyin/distinfo b/chinese/libpinyin/distinfo
index 3553bd818532..66d8a92f5388 100644
--- a/chinese/libpinyin/distinfo
+++ b/chinese/libpinyin/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1651370275
-SHA256 (libpinyin-2.6.2.tar.gz) = 1b6dac7828c3f4522d2242009ab2cea10df3d9f92fb9036b9ff0ad309b4e5325
-SIZE (libpinyin-2.6.2.tar.gz) = 20558423
+TIMESTAMP = 1678494659
+SHA256 (libpinyin-2.8.1.tar.gz) = 353154f06d71dd0737b77ddcb27cb0dcaddb00f7ccd695bc0314bb42050e9050
+SIZE (libpinyin-2.8.1.tar.gz) = 20594925
diff --git a/chinese/libpinyin/pkg-plist b/chinese/libpinyin/pkg-plist
index d37f819e2b68..d5edcc6572e8 100644
--- a/chinese/libpinyin/pkg-plist
+++ b/chinese/libpinyin/pkg-plist
@@ -6,8 +6,8 @@ include/libpinyin-%%VER%%/pinyin.h
include/libpinyin-%%VER%%/pinyin_custom2.h
lib/libpinyin.a
lib/libpinyin.so
-lib/libpinyin.so.13
-lib/libpinyin.so.13.0.0
+lib/libpinyin.so.%%ABIVER%%
+lib/libpinyin.so.%%ABIVER%%.0.0
libdata/pkgconfig/libpinyin.pc
man/man1/libpinyin.1.gz
%%DATADIR%%/data/addon_phrase_index.bin