ports/142470: devel/librcc: update to 0.2.9 release

Dima Panov fluffy at FreeBSD.org
Fri Jan 8 13:20:01 UTC 2010


>Number:         142470
>Category:       ports
>Synopsis:       devel/librcc: update to 0.2.9 release
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 08 13:20:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Dima Panov
>Release:        FreeBSD 9.0-900004-CURRENT amd64
>Organization:
Fluffy.Khv.RU 
>Environment:


System: FreeBSD 9.0-900004-CURRENT #0: Fri Dec 11 22:39:37 VLAT 2009
    fluffy at Fluffy.Khv.RU:/usr/obj/usr/src/sys/Spot



>Description:


devel/librcc: update to 0.2.9 release

also add required and optional dependencies, all on by default to give users maximum strenght of automagic charset detection

files/patch-src-rccstring.h is obsolete now


>How-To-Repeat:





>Fix:


--- librcc.diff begins here ---
Index: devel/librcc/Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/librcc/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- devel/librcc/Makefile	22 Aug 2009 00:18:13 -0000	1.4
+++ devel/librcc/Makefile	8 Jan 2010 12:04:54 -0000
@@ -6,26 +6,61 @@
 #
 
 PORTNAME=	librcc
-PORTVERSION=	0.2.6
-PORTREVISION=	1
+PORTVERSION=	0.2.9
 CATEGORIES=	devel
-MASTER_SITES=	SF/rusxmms/Charset%20Conversion%20Library/${PORTVERSION}
+MASTER_SITES=	SF/rusxmms/Charset%20Conversion%20Library/${PORTVERSION} \
+		http://dside.dyndns.org/files/rusxmms/
 
 MAINTAINER=	uspoerlein at gmail.com
 COMMENT=	Library used by rusxmms for language autodetection
 
-LIB_DEPENDS=	rcd.1:${PORTSDIR}/devel/librcd
+LIB_DEPENDS=	rcd.1:${PORTSDIR}/devel/librcd \
+		enca.5:${PORTSDIR}/converters/enca \
+		aspell.16:${PORTSDIR}/textproc/aspell
 
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
-USE_GNOME=	gtk12 libxml2
+USE_GNOME=	gnomehack lthack libxml2 glib12 gtk12
 USE_GMAKE=	yes
 USE_ICONV=	yes
 USE_LDCONFIG=	yes
+USE_AUTOTOOLS=	autoheader:262
 
-CONFIGURE_ARGS=--disable-bdb --disable-gtk2 --disable-glib2
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LIBS="-L${LOCALBASE}/lib" \
+CPPFLAGS=	-I${LOCALBASE}/include
+LIBS=		-L${LOCALBASE}/lib
+
+OPTIONS=	BDB "Translation database support" on \
+		TRANSLATE "Online translation support" on \
+		GTK2 "Gtk+2 frontend" on
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_BDB)
+USE_BDB=	41+
+CPPFLAGS+=	-I${BDB_INCLUDE_DIR}
+LIBS+=		-L${BDB_LIB_DIR}
+CONFIGURE_ARGS+=--enable-bdb
+.else
+CONFIGURE_ARGS+=--disable-bdb
+.endif
+
+.if defined(WITH_TRANSLATE)
+LIB_DEPENDS+=	translate.0:${PORTSDIR}/textproc/libtranslate
+CONFIGURE_ARGS+=--enable-libtranslate
+.else
+CONFIGURE_ARGS+=--disable-libtranslate
+.endif
+
+.if defined(WITH_GTK2)
+USE_GNOME+=	gtk20
+PLIST_SUB+=	WITH_GTK2=""
+.else
+CONFIGURE_ARGS+=--disable-glib1 --disable-gtk1
+PLIST_SUB+=	WITH_GTK2="@comment "
+.endif
+
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" \
+		LIBS="${LIBS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}"
 
 .include <bsd.port.mk>
Index: devel/librcc/distinfo
===================================================================
RCS file: /home/ncvs/ports/devel/librcc/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- devel/librcc/distinfo	21 Jan 2008 22:30:53 -0000	1.2
+++ devel/librcc/distinfo	29 Nov 2009 08:23:17 -0000
@@ -1,3 +1,3 @@
-MD5 (librcc-0.2.6.tar.bz2) = 9bbf248c7312c73c0b6ca19b9c5a2af1
-SHA256 (librcc-0.2.6.tar.bz2) = 0e736b170d396a775e7dc18587fc38228907e630eae50098c98269aa3e405abc
-SIZE (librcc-0.2.6.tar.bz2) = 505076
+MD5 (librcc-0.2.9.tar.bz2) = 2a246bc6e9485b18c16fbe481ef6336d
+SHA256 (librcc-0.2.9.tar.bz2) = 8d3bd4083edfd54dcd866d5b9f3f3f2a4f63013c895eeabb00e3be79e44e3a43
+SIZE (librcc-0.2.9.tar.bz2) = 411294
Index: devel/librcc/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/devel/librcc/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- devel/librcc/pkg-plist	19 Jan 2008 19:17:03 -0000	1.1
+++ devel/librcc/pkg-plist	8 Jan 2010 11:32:56 -0000
@@ -8,6 +8,10 @@
 lib/librccgtk.la
 lib/librccgtk.so
 lib/librccgtk.so.2
+%%WITH_GTK2%%lib/librccgtk2.a
+%%WITH_GTK2%%lib/librccgtk2.la
+%%WITH_GTK2%%lib/librccgtk2.so
+%%WITH_GTK2%%lib/librccgtk2.so.2
 lib/librccui.a
 lib/librccui.la
 lib/librccui.so
@@ -18,5 +22,6 @@
 lib/rcc/engines/western_engine.a
 lib/rcc/engines/western_engine.la
 lib/rcc/engines/western_engine.so
+lib/rcc/rccexternal
 @dirrm lib/rcc/engines
 @dirrm lib/rcc
Index: devel/librcc/files/patch-src-rccstring.h
===================================================================
RCS file: /home/ncvs/ports/devel/librcc/files/patch-src-rccstring.h,v
retrieving revision 1.1
diff -u -r1.1 patch-src-rccstring.h
--- devel/librcc/files/patch-src-rccstring.h	9 Mar 2009 20:43:01 -0000	1.1
+++ devel/librcc/files/patch-src-rccstring.h	7 Jan 2010 17:18:35 -0000
@@ -1,15 +0,0 @@
---- src/rccstring.h.orig	2009-03-09 13:59:14.000000000 +0100
-+++ src/rccstring.h	2009-03-09 13:59:20.000000000 +0100
-@@ -18,11 +18,7 @@
- int rccStringFixID(rcc_string string, rcc_context ctx);
- int rccStringChangeID(rcc_string string, rcc_language_id language_id);
- 
--#ifdef HAVE_STRNLEN
--# ifndef strnlen
--int strnlen(const char *str, size_t size);
--# endif /* !strnlen */
--#else
-+#ifndef HAVE_STRNLEN
- int rccStrnlen(const char *str, size_t size);
- #endif /* HAVE_STRNLEN */
- int rccIsASCII(const char *str);
--- librcc.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list