enca 1.18
authorYaakov Selkowitz <yselkowi@redhat.com>
Wed, 10 Feb 2016 02:53:17 +0000 (20:53 -0600)
committerYaakov Selkowitz <yselkowi@redhat.com>
Wed, 10 Feb 2016 02:53:17 +0000 (20:53 -0600)
1.18-no-undefined.patch [new file with mode: 0644]
1.18-parallel-make.patch [new file with mode: 0644]
1.18-vpath-build.patch [new file with mode: 0644]
enca-1.9-1.src.patch [deleted file]
enca.cygport

diff --git a/1.18-no-undefined.patch b/1.18-no-undefined.patch
new file mode 100644 (file)
index 0000000..ac0a4fd
--- /dev/null
@@ -0,0 +1,11 @@
+--- origsrc/enca-1.18/lib/Makefile.am  2016-01-04 12:12:05.000000000 -0600
++++ src/enca-1.18/lib/Makefile.am      2016-02-09 16:28:18.591076700 -0600
+@@ -6,7 +6,7 @@ lib_LTLIBRARIES = libenca.la
+ # Any iface change    C++: 0:   A
+ # Adding ifaces       C:   R:   A++
+ # Changing ifaces     C:   R:   0
+-libenca_la_LDFLAGS = -version-info 5:1:5
++libenca_la_LDFLAGS = -version-info 5:1:5 -no-undefined
+ libenca_la_SOURCES = \
+   common.c \
+   ctype.c \
diff --git a/1.18-parallel-make.patch b/1.18-parallel-make.patch
new file mode 100644 (file)
index 0000000..a4cf30e
--- /dev/null
@@ -0,0 +1,11 @@
+--- origsrc/enca-1.18/tools/Makefile.am        2016-01-04 12:12:05.000000000 -0600
++++ src/enca-1.18/tools/Makefile.am    2016-02-09 16:32:24.167760900 -0600
+@@ -29,7 +29,7 @@ all: encodings.h
+ encodings.sed: $(top_builddir)/iconvenc.h
+       sed -e 's/^#define \([A-Z0-9_]*\) \(.*\)/@\1@ \2/' -e 's/"//g' -e 's/NULL$$//' -e 's/ /\//' -e 's/^\(.*\)$$/s\/\1\//' $(top_builddir)/iconvenc.h >encodings.sed
+-encodings.h: encodings.sed $(srcdir)/encodings.dat make_hash
++encodings.h: encodings.sed $(srcdir)/encodings.dat make_hash$(EXEEXT)
+       sed -f encodings.sed $(srcdir)/encodings.dat | ./make_hash >encodings.h
+ # Normally there's no need to regenerate tables, they are copy-and-pasted
diff --git a/1.18-vpath-build.patch b/1.18-vpath-build.patch
new file mode 100644 (file)
index 0000000..4940708
--- /dev/null
@@ -0,0 +1,11 @@
+--- origsrc/enca-1.18/Makefile.am      2016-01-04 12:12:05.000000000 -0600
++++ src/enca-1.18/Makefile.am  2016-02-09 16:29:23.590830600 -0600
+@@ -42,7 +42,7 @@ EXTRA_DIST = \
+ test: check
+ docs:
+-      cd $(srcdir)/devel-docs && $(MAKE) docs
++      cd devel-docs && $(MAKE) docs
+ .PHONY: test docs
diff --git a/enca-1.9-1.src.patch b/enca-1.9-1.src.patch
deleted file mode 100644 (file)
index 960cd9e..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
---- origsrc/enca-1.9/Makefile.am       2005-11-24 04:21:32.000000000 -0600
-+++ src/enca-1.9/Makefile.am   2007-08-30 21:47:44.750000000 -0500
-@@ -41,7 +43,7 @@
- test: check
- docs:
--      cd $(srcdir)/devel-docs && $(MAKE) docs
-+      cd devel-docs && $(MAKE) docs
- .PHONY: test docs
---- origsrc/enca-1.9/configure.ac      2005-12-18 06:07:46.000000000 -0600
-+++ src/enca-1.9/configure.ac  2007-08-30 21:47:44.765625000 -0500
-@@ -90,7 +90,7 @@
- done
- dnl And for gtk-doc
--gtk_CHECK_GTK_DOC
-+GTK_DOC_CHECK
- dnl Check for good random number sources
- AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom)
---- origsrc/enca-1.9/devel-docs/Makefile.am    2004-05-27 12:17:15.000000000 -0500
-+++ src/enca-1.9/devel-docs/Makefile.am        2007-08-30 21:47:44.781250000 -0500
-@@ -84,8 +84,8 @@
-       $(DOC_MODULE).intefraces
- if ENABLE_GTK_DOC
--if MAINTAINER_MODE
- docs: html-build.stamp
-+all: html-build.stamp
- #### scan ####
-@@ -138,7 +138,6 @@
-       cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
-       touch html-build.stamp
- endif
--endif
- ##############
---- origsrc/enca-1.9/lib/Makefile.am   2005-11-24 14:11:20.000000000 -0600
-+++ src/enca-1.9/lib/Makefile.am       2007-08-30 21:47:44.796875000 -0500
-@@ -7,7 +7,7 @@
- # Any iface change    C++: 0:   A
- # Adding ifaces       C:   R:   A++
- # Changing ifaces     C:   R:   0
--libenca_la_LDFLAGS = -version-info 5:1:5
-+libenca_la_LDFLAGS = -version-info 5:1:5 -no-undefined
- libenca_la_SOURCES = \
-   common.c \
-   ctype.c \
---- origsrc/enca-1.9/m4/libiconv.m4    2004-11-17 12:00:28.000000000 -0600
-+++ src/enca-1.9/m4/libiconv.m4        2007-08-30 21:47:44.796875000 -0500
-@@ -18,7 +18,7 @@
- dnl Use standard iconv test
- AM_ICONV
--CONVERTOR_LIBS="$CONVERTOR_LIBS $LIBICONV"
-+CONVERTOR_LIBS="$CONVERTOR_LIBS $LTLIBICONV"
- dnl Compile iconvcap.c and run it to determine what encodings iconv actually
- dnl knows an under what names. This is not needed with GNU iconv. HAVE_ICONV
index 0358f1dd4b1bc5a9b91af6eb7b8d8e3467b42ad1..f7c8142fa8220ce3b14205b6cf89be7b78ee0b57 100644 (file)
@@ -1,25 +1,28 @@
-NAME="enca"
-VERSION=1.9
-RELEASE=1
 inherit gnome2
 
-DESCRIPTION="Extremely Naive Charset Analyser"
-HOMEPAGE="http://trific.ath.cx/software/enca/"
-SRC_URI="http://trific.ath.cx/Ftp/${PN}/${P}.tar.bz2"
+NAME="enca"
+VERSION=1.18
+RELEASE=1
+CATEGORY="Libs"
+SUMMARY="Character set analyser library"
+DESCRIPTION="Enca is an Extremely Naive Charset Analyser. It detects character
+set and encoding of text files and can also convert them to other encodings.
+The charset detecing functionality is also available as a library."
+HOMEPAGE="http://cihar.com/software/enca/"
+SRC_URI="http://dl.cihar.com/enca/enca-${VERSION}.tar.xz"
+PATCH_URI="
+       1.18-no-undefined.patch
+       1.18-parallel-make.patch
+       1.18-vpath-build.patch
+"
 
-abi=0
-PKG_NAMES="${PN} lib${PN}${abi} lib${PN}-devel"
-PKG_HINTS="setup lib devel"
-PKG_CONTENTS[0]="--exclude=gtk-doc usr/bin/*.exe usr/lib/${PN}/ usr/share/"
-PKG_CONTENTS[1]="usr/bin/cygenca-${abi}.dll"
-PKG_CONTENTS[2]='usr/include/ usr/lib/lib* usr/lib/pkgconfig/ usr/share/gtk-doc/'
+PKG_NAMES="enca libenca0 libenca-devel libenca-doc"
+enca_CATEGORY="Text"
+enca_SUMMARY="Character set analyser and converter tool"
+enca_CONTENTS="--exclude=gtk-doc usr/bin/en* usr/libexec/enca/ usr/share/man/man1/"
+libenca0_CONTENTS="usr/bin/cygenca-0.dll usr/share/doc/"
+libenca_devel_CONTENTS='usr/include/ usr/lib/lib* usr/lib/pkgconfig/'
+libenca_doc_CATEGORY="Doc"
+libenca_doc_CONTENTS="usr/share/gtk-doc/html/libenca/"
 
 ACLOCAL_FLAGS="-I m4"
-CYGCONF_ARGS="--libexecdir=/usr/lib --enable-static"
-CATEGORY="Text"
-REQUIRES="libenca0 libiconv2 bash"
-SUMMARY="Character set analyser and converter (utilities)"
-DESCRIPTION="Enca is an Extremely Naive Charset Analyser. It detects 
-character set and encoding of text files and can also convert them to 
-other encodings. The charset detecing functionality is also available as 
-a library."
This page took 0.047229 seconds and 5 git commands to generate.