Added recode-3.6 build template.

This commit is contained in:
Juan RP 2010-12-14 00:26:36 +01:00
parent decc932c12
commit 677dc32589
10 changed files with 105 additions and 0 deletions

1
srcpkgs/librecode Symbolic link
View file

@ -0,0 +1 @@
recode

1
srcpkgs/recode-devel Symbolic link
View file

@ -0,0 +1 @@
recode

2
srcpkgs/recode/depends Normal file
View file

@ -0,0 +1,2 @@
abi_depends=">=3.6"
api_depends="${abi_depends}"

View file

@ -0,0 +1,14 @@
# Template file for 'librecode'.
#
short_desc="${short_desc} - shared library"
long_desc="${long_desc}
This package contains the shared library."
Add_dependency run glibc
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.so* ${DESTDIR}/usr/lib
}

View file

@ -0,0 +1,19 @@
http://bugs.gentoo.org/283029
--- a/m4/flex.m4
+++ b/m4/flex.m4
@@ -8,11 +8,11 @@ dnl ad_AC_PROG_FLEX
dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
AC_DEFUN(ad_AC_PROG_FLEX,
[AC_CHECK_PROGS(LEX, flex, missing)
-if test "$LEX" = missing; then
+AS_IF([test "$LEX" = missing], [dnl
LEX="\$(top_srcdir)/$ac_aux_dir/missing flex"
LEX_OUTPUT_ROOT=lex.yy
AC_SUBST(LEX_OUTPUT_ROOT)dnl
-else
+], [:
AC_PROG_LEX
AC_DECL_YYTEXT
-fi])
+])])

View file

@ -0,0 +1,23 @@
http://bugs.gentoo.org/239372
patch by Dmitry Karasik
--- recode-3.6/m4/gettext.m4
+++ recode-3.6/m4/gettext.m4
@@ -109,12 +109,12 @@
else
ac_items="$LINGUAS"
for ac_item in $ac_items; do
- case "$ALL_LINGUAS" in
- *$ac_item*)
+ for supported_item in $ALL_LINGUAS; do
+ if test "$ac_item" = "$supported_item"; then
ac_print="$ac_print $ac_item"
MOFILES="$MOFILES $ac_item.mo"
- ;;
- esac
+ fi
+ done
done
fi
AC_SUBST(MOFILES)

Binary file not shown.

View file

@ -0,0 +1,17 @@
# Template file for 'recode-devel'.
#
short_desc="${short_desc} - development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run glib-devel
Add_dependency run librecode
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
}

27
srcpkgs/recode/template Normal file
View file

@ -0,0 +1,27 @@
# Template file for 'recode'
pkgname=recode
version=3.6
patch_args="-Np1"
distfiles="${DEBIAN_SITE}/main/r/${pkgname}/${pkgname}_${version}.orig.tar.gz"
build_style=gnu_configure
configure_args="--without-included-gettext"
short_desc="Character set conversion utility"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=e3e6a4f3f8e5c6052ab70155990c074d87aa0b614fc1be31d194750d1d962fcf
long_desc="
Free recode converts files between character sets and usages. When exact
transliterations are not possible, it may get rid of the offending
characters or fall back on approximations. This program recognizes or
produces nearly 300 different character sets and is able to transliterate
files between almost any pair. Most RFC 1345 character sets, and all
libiconv character sets, are supported."
subpackages="librecode $pkgname-devel"
Add_dependency run glibc
Add_dependency run librecode
Add_dependency build texinfo
pre_configure()
{
cd ${wrksrc} && rm -f acinclude.m4 && autoreconf -fi && libtoolize
}

View file

@ -715,3 +715,4 @@ libmms.so libmms libmms-devel
libsmbclient.so libsmbclient samba-devel
libwbclient.so libsmbclient samba-devel
libjasper.so libjasper jasper-devel
librecode.so librecode recode-devel