mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- add an OPTION to allow libexttextcat to be a dropin replacement for libtextcat
- add a check target to all runinng libexttextcat check PR: ports/167945 Submitted by: Peter Jeremy <peter@rulingia.com>
This commit is contained in:
parent
5fa0d6cf1f
commit
4735340533
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296926
@ -24,4 +24,39 @@ USE_GMAKE= yes
|
||||
USE_GNOME= gnomehack
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PORTDOCS= README README.libtextcat TODO
|
||||
|
||||
OPTIONS= COMPAT_TEXTCAT "Install libtextcat compatible files" Off
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(WITH_COMPAT_TEXTCAT)
|
||||
PLIST_SUB+= TEXTCAT=''
|
||||
.else
|
||||
PLIST_SUB+= TEXTCAT='@comment '
|
||||
.endif
|
||||
|
||||
.if defined(WITH_LM_FILES)
|
||||
PLIST_SUB+= LM=''
|
||||
.else
|
||||
PLIST_SUB+= LM='@comment '
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if defined(WITH_COMPAT_TEXTCAT)
|
||||
${LN} -sf libexttextcat/textcat.h ${PREFIX}/include/
|
||||
${LN} -sf libexttextcat ${PREFIX}/include/libtextcat
|
||||
${LN} -sf libexttextcat.a ${PREFIX}/lib/libtextcat.a
|
||||
${LN} -sf libexttextcat.la ${PREFIX}/lib/libtextcat.la
|
||||
${LN} -sf libexttextcat.so.0 ${PREFIX}/lib/libtextcat.so
|
||||
${LN} -sf libexttextcat.so.0 ${PREFIX}/lib/libtextcat.so.0
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
check:
|
||||
cd ${WRKSRC}/src && make check
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
20
textproc/libexttextcat/files/patch-src__Makefile.in
Normal file
20
textproc/libexttextcat/files/patch-src__Makefile.in
Normal file
@ -0,0 +1,20 @@
|
||||
--- ./src/Makefile.in.orig 2012-05-19 01:06:43.123609000 +0200
|
||||
+++ ./src/Makefile.in 2012-05-19 01:07:13.297605027 +0200
|
||||
@@ -711,7 +711,7 @@
|
||||
st sv sw ta tet th tg ti tk tl tn tpi tr ts \
|
||||
tt ty ug uk uz ve vi wa xh yi yo zh-Hans \
|
||||
zh-Hant zu; do \
|
||||
- bash ./test-primary.sh $$primarylanguage; \
|
||||
+ sh ./test-primary.sh $$primarylanguage; \
|
||||
if test x$$? != x0; then \
|
||||
echo FAIL: $$primarylanguage && exit 1; \
|
||||
else \
|
||||
@@ -720,7 +720,7 @@
|
||||
done
|
||||
@echo secondary languages
|
||||
@for secondarylanguage in sco; do \
|
||||
- bash ./test-secondary.sh $$secondarylanguage; \
|
||||
+ sh ./test-secondary.sh $$secondarylanguage; \
|
||||
if test x$$? != x0; then \
|
||||
echo FAIL: $$secondarylanguage && exit 1; \
|
||||
else \
|
@ -5,10 +5,16 @@ include/libexttextcat/exttextcat-version.h
|
||||
include/libexttextcat/fingerprint.h
|
||||
include/libexttextcat/textcat.h
|
||||
include/libexttextcat/utf8misc.h
|
||||
%%TEXTCAT%%include/textcat.h
|
||||
%%TEXTCAT%%include/libtextcat
|
||||
lib/libexttextcat.a
|
||||
lib/libexttextcat.la
|
||||
lib/libexttextcat.so
|
||||
lib/libexttextcat.so.0
|
||||
%%TEXTCAT%%lib/libtextcat.a
|
||||
%%TEXTCAT%%lib/libtextcat.la
|
||||
%%TEXTCAT%%lib/libtextcat.so
|
||||
%%TEXTCAT%%lib/libtextcat.so.0
|
||||
libdata/pkgconfig/libexttextcat.pc
|
||||
%%DATADIR%%/af.lm
|
||||
%%DATADIR%%/am.lm
|
||||
|
Loading…
Reference in New Issue
Block a user