mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Unbreak, when libsoup is needed, by switching to libsoup24. Use 4
year-old patch for that purpose, that's available on MASTER_SITE. While at it, apply some other patches sitting at the same location. Some others were already present in our own files/ -- add the link to the originals in those cases. Turn on MAKE_JOBS_SAFE. Bump PORTREVISION. The port needs a loving maintainer: services.xml file, for example, is rather outdated: the self-testing included breaks for most online translation services (for others the translation-results are slightly different from those recorded at 2005).
This commit is contained in:
parent
3b7a495b67
commit
ec966285b6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282621
4 changed files with 37 additions and 10 deletions
|
@ -7,10 +7,16 @@
|
||||||
|
|
||||||
PORTNAME= libtranslate
|
PORTNAME= libtranslate
|
||||||
PORTVERSION= 0.99
|
PORTVERSION= 0.99
|
||||||
PORTREVISION= 5
|
PORTREVISION= 6
|
||||||
CATEGORIES= textproc
|
CATEGORIES= textproc
|
||||||
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||||
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} # May append to this
|
||||||
|
|
||||||
|
PATCHFILES= libtranslate-0.99-services.diff libtranslate-0.99-postmarker.diff
|
||||||
|
PATCH_SITES= ${MASTER_SITES}
|
||||||
|
PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
|
||||||
|
PATCH_DIST_STRIP= -p1
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= A natural language translation library
|
COMMENT= A natural language translation library
|
||||||
|
@ -22,12 +28,17 @@ USE_LDCONFIG= yes
|
||||||
CPPFLAGS+= -I${LOCALBASE}/include
|
CPPFLAGS+= -I${LOCALBASE}/include
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib
|
LDFLAGS+= -L${LOCALBASE}/lib
|
||||||
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc
|
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc
|
||||||
|
MAKE_JOBS_SAFE= yes
|
||||||
|
|
||||||
OPTIONS= GENERIC "generic module" on \
|
OPTIONS= GENERIC "generic module" on \
|
||||||
TALKFILTERS "talkfilters module" on
|
TALKFILTERS "talkfilters module" on
|
||||||
|
|
||||||
MAN1= translate.1
|
MAN1= translate.1
|
||||||
|
|
||||||
|
post-patch::
|
||||||
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' \
|
||||||
|
-e 's|libsoup-2.2|libsoup-2.4|g' ${WRKSRC}/configure
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if defined(WITHOUT_GENERIC)
|
.if defined(WITHOUT_GENERIC)
|
||||||
|
@ -36,11 +47,16 @@ PLIST_SUB+= GENERIC="@comment "
|
||||||
.else
|
.else
|
||||||
PLIST_SUB+= GENERIC=""
|
PLIST_SUB+= GENERIC=""
|
||||||
USE_GNOME+= libxml2
|
USE_GNOME+= libxml2
|
||||||
LIB_DEPENDS+= soup-2.2:${PORTSDIR}/devel/libsoup22
|
LIB_DEPENDS+= soup-2.4:${PORTSDIR}/devel/libsoup
|
||||||
MAN5+= services.xml.5
|
MAN5+= services.xml.5
|
||||||
|
CPPFLAGS+= -DHAVE_LIBSOUP24
|
||||||
DEPRECATED= Depends on devel/libsoup22, which is FORBIDDEN
|
DISTFILES+= libtranslate-0.99-libsoup24.diff
|
||||||
EXPIRATION_DATE= 2011-10-14
|
EXTRACT_ONLY= ${DISTFILES:M*tar.*}
|
||||||
|
# This patching needs to happen AFTER the stock patches were applied:
|
||||||
|
post-patch::
|
||||||
|
${SED} s,SOUP_MESSAGE_RESPONSE_,trans_SOUP_MESSAGE_RESPONSE_,g \
|
||||||
|
${DISTDIR}/libtranslate-0.99-libsoup24.diff \
|
||||||
|
| ${PATCH} -d ${WRKSRC} -p1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITHOUT_TALKFILTERS)
|
.if defined(WITHOUT_TALKFILTERS)
|
||||||
|
@ -51,7 +67,4 @@ PLIST_SUB+= TALKFILTERS=""
|
||||||
LIB_DEPENDS+= talkfilters:${PORTSDIR}/misc/talkfilters
|
LIB_DEPENDS+= talkfilters:${PORTSDIR}/misc/talkfilters
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
|
||||||
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,2 +1,8 @@
|
||||||
SHA256 (libtranslate-0.99.tar.gz) = 4b2becb139e51663022d9531c430ebcc81d8b26edc73f6ddc05707ff9950eb34
|
SHA256 (libtranslate-0.99.tar.gz) = 4b2becb139e51663022d9531c430ebcc81d8b26edc73f6ddc05707ff9950eb34
|
||||||
SIZE (libtranslate-0.99.tar.gz) = 532516
|
SIZE (libtranslate-0.99.tar.gz) = 532516
|
||||||
|
SHA256 (libtranslate-0.99-libsoup24.diff) = 60a42eda01ca3aa99e773525b99332e6fa122298607a1176c6a493ef462f7992
|
||||||
|
SIZE (libtranslate-0.99-libsoup24.diff) = 18354
|
||||||
|
SHA256 (libtranslate-0.99-services.diff) = 2777704812ca0c51900a2f50c3e8987cd3124d1712c3450c74b2f1452b67c4a9
|
||||||
|
SIZE (libtranslate-0.99-services.diff) = 8744
|
||||||
|
SHA256 (libtranslate-0.99-postmarker.diff) = ba3439f5ea952e8f2c24b00df215e18f6177cd99da99ffce10f62a9b29e09664
|
||||||
|
SIZE (libtranslate-0.99-postmarker.diff) = 485
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
--- src/modules/translate-generic-service.c.orig Mon Apr 11 23:08:47 2005
|
Copied from
|
||||||
|
|
||||||
|
http://nongnu.askapache.com/libtranslate/libtranslate-0.99-charsetparse.diff
|
||||||
|
|
||||||
|
--- src/modules/translate-generic-service.c Mon Apr 11 23:08:47 2005
|
||||||
+++ src/modules/translate-generic-service.c Mon Apr 11 23:15:54 2005
|
+++ src/modules/translate-generic-service.c Mon Apr 11 23:15:54 2005
|
||||||
@@ -484,7 +484,7 @@
|
@@ -484,7 +484,7 @@
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
--- src/translate-session.c.orig Mon Apr 11 22:44:53 2005
|
Copied from:
|
||||||
|
|
||||||
|
http://nongnu.askapache.com/libtranslate/libtranslate-0.99-condfix.diff
|
||||||
|
|
||||||
|
--- src/translate-session.c Mon Apr 11 22:44:53 2005
|
||||||
+++ src/translate-session.c Mon Apr 11 22:51:48 2005
|
+++ src/translate-session.c Mon Apr 11 22:51:48 2005
|
||||||
@@ -703,7 +703,14 @@
|
@@ -703,7 +703,14 @@
|
||||||
GError *tmp_err = NULL;
|
GError *tmp_err = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue