Skip to content

Commit

Permalink
devel/ticcutils: Use upstream release archive and minor fixes
Browse files Browse the repository at this point in the history
PR:		272175
  • Loading branch information
Daniel Engberg authored and yurivict committed Jun 24, 2023
1 parent a71db64 commit 26996d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
17 changes: 9 additions & 8 deletions devel/ticcutils/Makefile
@@ -1,8 +1,8 @@
PORTNAME= ticcutils
DISTVERSIONPREFIX= v
DISTVERSION= 0.32
PORTREVISION= 3
CATEGORIES= devel textproc
MASTER_SITES= https://github.com/LanguageMachines/${PORTNAME}/releases/download/v${DISTVERSION}/

MAINTAINER= yuri@FreeBSD.org
COMMENT= Generic utility library shared by the Tilburg University software
Expand All @@ -11,27 +11,28 @@ WWW= https://github.com/LanguageMachines/ticcutils
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= autoconf-archive>=0:devel/autoconf-archive
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \
libicui18n.so:devel/icu \
libtar.so:devel/libtar

USES= autoreconf compiler:c++11-lib gmake gnome libtool localbase:ldflags pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static
USES= compiler:c++11-lib gmake gnome libtool localbase:ldflags \
pathfix pkgconfig
USE_GNOME= libxml2
USE_LDCONFIG= yes

USE_GITHUB= yes
GH_ACCOUNT= LanguageMachines
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static

INSTALL_TARGET= install-strip
TEST_TARGET= check # 1 test fails, see https://github.com/LanguageMachines/ticcutils/issues/26
TEST_ENV= LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib

CFLAGS+= -D_THREAD_SAFE # configure on GCC-based architectures fails w/out this
# Workaround for https://github.com/LanguageMachines/ticcutils/issues/18 (also see the patch files/patch-configure.ac)
CXXFLAGS+= -DHAVE_BOOST_REGEX
LDFLAGS+= -lboost_regex

post-patch:
@${REINPLACE_CMD} -e 's|-O3||g' \
${PATCH_WRKSRC}/src/Makefile.in

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions devel/ticcutils/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1677079201
SHA256 (LanguageMachines-ticcutils-v0.32_GH0.tar.gz) = 9a7b2c3e1cd9b2643727719b2bc515f4bfc5f0cddf9e48bfa5e4c92d1e47a40d
SIZE (LanguageMachines-ticcutils-v0.32_GH0.tar.gz) = 266079
TIMESTAMP = 1687517598
SHA256 (ticcutils-0.32.tar.gz) = 7aaf9b87cd7218891853b6267f402fd51c53078394120c3f9e7ec8c63de928b1
SIZE (ticcutils-0.32.tar.gz) = 669107
10 changes: 0 additions & 10 deletions devel/ticcutils/files/patch-src_Makefile.am

This file was deleted.

0 comments on commit 26996d7

Please sign in to comment.