diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/ucl |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/ucl')
-rw-r--r-- | dev-libs/ucl/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/ucl/files/ucl-1.03-CFLAGS.patch | 134 | ||||
-rw-r--r-- | dev-libs/ucl/files/ucl-1.03-x32.patch | 173 | ||||
-rw-r--r-- | dev-libs/ucl/metadata.xml | 5 | ||||
-rw-r--r-- | dev-libs/ucl/ucl-1.03-r1.ebuild | 45 |
5 files changed, 364 insertions, 0 deletions
diff --git a/dev-libs/ucl/Manifest b/dev-libs/ucl/Manifest new file mode 100644 index 000000000000..1314055f7754 --- /dev/null +++ b/dev-libs/ucl/Manifest @@ -0,0 +1,7 @@ +AUX ucl-1.03-CFLAGS.patch 4187 SHA256 1d5eb9909db458548ab2671b65c14b3f162ec2e3e3d4a4aa451f80dc407b84ba SHA512 4d9b608b2b19cecc6693beb73c5f775b6f1ffbe1e1138dfe77a1318891705a10319e4e728f193f68555bff55a3a24871ec58c2823c487442559987dcb392a890 WHIRLPOOL 19469d4daa147f639ac6ba60dead7720b1a1102c9fe3412fafdd12a7c19e4405303d98e634f4328c3e8321ad92d54a83fa660150411b21f5aed29e4cee00be7a +AUX ucl-1.03-x32.patch 6437 SHA256 384e4d6f5c3c59515bd9cac879c784ed49e753122c5b110c581947b53940e710 SHA512 e6a481c12255c7756d424eded3de923a971c8ebb440776556d467ab950ed0944f3468b1f875f1ae835edfe47b44a6f738d5cb16bd8c49c085f6239685528a6ef WHIRLPOOL c848a114fadd9a8b19f19e5ec25198ba8a3825991e0b4516768dcd1a512387515adc879f55822dedfda40c5f7e277e4017ae21d505636cff96c2298c53a6dc8c +DIST ucl-1.03.tar.gz 534881 SHA256 b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348 SHA512 7dd1824d01b4bb41ee03bbceddc634a9f7f910d235e5cca163d783680d6743f0f3cc309bbbcc1e094d897d549d3805a555f9093b4d77805443d896dd1862aa34 WHIRLPOOL 64b9124cf863248e74c97c45631a0fca7337fa6a99bd08dfbd5e7ca65d8fd509ba6a331059f87472d7dbcd56f9f354359d0c2da412224f9f4fda8ff3c8b6d2a6 +EBUILD ucl-1.03-r1.ebuild 1147 SHA256 def561aacf075f6cecfa3843313125f19bfc42c9b156c8cf7f1c5997d29d03a7 SHA512 2f374cf021f973d745894e401837665e5d50c5e05fe750c7a101c3653d400567db8c3f547a0ec099601fd15f0cfc1a8568cca65663b4e59a6d1593e4d23efaa1 WHIRLPOOL a82cf25e766821de927e1983bc587c6e2b21d6d3e60cb3eeaaf3d348f25975e087e3d452fafb3e187187f547aab25d1b8df2cdce8366ed35a7af54a0ad5e4870 +MISC ChangeLog 3116 SHA256 6d8ad37b2fea9fa4fdc6b6b3afcf1d7defca2b71813c24d4e52e2334ec7dc47a SHA512 aab42a40db079ab60de4ca38759ef8b450a70026bf232786dae2fbe372fc0fe7e3fde4246e95940b9d56c268f2fbe6929b90a4ba9dc0c3b4cbfc64df8e6f2c93 WHIRLPOOL 93868f282a7e4720b28e8216831d3777527e4407ecf8ad3ba292f0027138019c37857a4a6f2a0502577f81c54be1f99ccc7572e1aac5e25f3a81b1f5052e807b +MISC ChangeLog-2015 4898 SHA256 317dd78db9dfc9ccae7238122fbcb5a7f5b65869fa30af4d6e954e8e60cf28df SHA512 ecb75d07d9ac102c7971123aa57752ea6c4b6a6fffbb97ee7b99c895a94f84ae852f014a30b0194d00d5007d50ce6efc11c197c547c4640dfd09ab6452d68a4a WHIRLPOOL 946dc5ff01f1cb7b72370221862791524c7c5464717c1f99cfcad880de60ce8361ae9b2ebb7073b4e5288b371547a1daf4eaa3280c45b1d115f89f564d04c8c5 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/dev-libs/ucl/files/ucl-1.03-CFLAGS.patch b/dev-libs/ucl/files/ucl-1.03-CFLAGS.patch new file mode 100644 index 000000000000..07c925b4888e --- /dev/null +++ b/dev-libs/ucl/files/ucl-1.03-CFLAGS.patch @@ -0,0 +1,134 @@ +From: Nathan Phillip Brink <binki@gentoo.org> +Subject: Respect CCASFLAGS (which often defaults to CFLAGS). Fixes + compilation for portage-multilib users. + +diff -r c090ed619e90 configure.ac +--- a/configure.ac Sun Jun 26 16:00:09 2011 -0400 ++++ b/configure.ac Sun Jun 26 20:52:01 2011 -0400 +@@ -47,14 +47,12 @@ + AC_CANONICAL_TARGET + AM_MAINTAINER_MODE + +-if test -z "$ac_abs_top_srcdir"; then +- _AC_SRCPATHS(.) +-fi + if test -r .Conf.settings1; then + . ./.Conf.settings1 + fi + + AC_PROG_CC ++AM_PROG_AS + AC_PROG_CPP + mfx_PROG_CPPFLAGS + AC_C_CONST +@@ -84,13 +82,13 @@ + if test "X$enable_asm" != Xno; then + mfx_compile_S='${CC-cc} -c conftest.S 1>&AS_MESSAGE_LOG_FD' + cat > conftest.S <<EOF +-#include "$ac_abs_top_srcdir/asm/i386/src_gas/crc_asm.S" ++#include "$srcdir/asm/i386/src_gas/crc_asm.S" + EOF + enable_asm=no + if AC_TRY_EVAL(mfx_compile_S); then + if AC_TRY_COMMAND([test -s conftest.$ac_objext]); then + enable_asm=yes +- UCL_ASM_VPATH=":$ac_abs_top_srcdir/asm/i386/src_gas" ++ UCL_ASM_VPATH=":\$(top_srcdir)/asm/i386/src_gas" + fi + fi + if test "X$enable_asm" = Xno; then +@@ -160,11 +158,6 @@ + AC_SUBST(UCL_CFLAGS) + AC_SUBST(UCL_EXTRA_CFLAGS) + +-configure_CPPFLAGS=$CPPFLAGS +-configure_CFLAGS=$CFLAGS +-AC_SUBST(configure_CPPFLAGS) +-AC_SUBST(configure_CFLAGS) +- + AC_CONFIG_FILES([Makefile examples/Makefile include/Makefile include/ucl/Makefile src/Makefile]) + AC_OUTPUT + +diff -r c090ed619e90 src/Makefile.am +--- a/src/Makefile.am Sun Jun 26 16:00:09 2011 -0400 ++++ b/src/Makefile.am Sun Jun 26 20:52:01 2011 -0400 +@@ -4,11 +4,10 @@ + # + + VPATH = @srcdir@@UCL_ASM_VPATH@ +-SUFFIXES = .S + + INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir) +-CPPFLAGS = $(UCL_CPPFLAGS) $(configure_CPPFLAGS) $(UCL_EXTRA_CPPFLAGS) +-CFLAGS = $(UCL_CFLAGS) $(configure_CFLAGS) $(UCL_EXTRA_CFLAGS) ++AM_CPPFLAGS = $(UCL_CPPFLAGS) $(UCL_EXTRA_CPPFLAGS) ++AM_CFLAGS = $(UCL_CFLAGS) $(UCL_EXTRA_CFLAGS) + + lib_LTLIBRARIES = libucl.la + +@@ -16,51 +15,37 @@ + + libucl_la_SOURCES = \ + alloc.c \ ++ getbit.h \ + n2b_99.c n2b_d.c n2b_ds.c n2b_to.c \ + n2d_99.c n2d_d.c n2d_ds.c n2d_to.c \ + n2e_99.c n2e_d.c n2e_ds.c n2e_to.c \ ++ ucl_conf.h \ + ucl_crc.c \ + ucl_init.c \ +- ucl_ptr.c \ ++ ucl_ptr.c ucl_ptr.h \ + ucl_str.c \ + ucl_util.c + + EXTRA_DIST = \ +- getbit.h \ + n2_99.ch \ +- ucl_conf.h \ + ucl_dll.ch \ + ucl_mchw.ch \ +- ucl_ptr.h \ + ucl_swd.ch + +-libucl_la_LIBADD = $(UCL_ASM_OBJECTS) +-libucl_la_DEPENDENCIES = $(libucl_la_LIBADD) +- +- + # /*********************************************************************** + # // assembler support + # ************************************************************************/ + + if UCL_USE_ASM +- +-UCL_ASM_OBJECTS = \ +- cpuid.lo crc_asm.lo crcs_asm.lo rdtsc.lo rdtsca.lo \ +- n2b_d_f1.lo n2b_d_f2.lo n2b_d_f3.lo n2b_d_f4.lo n2b_d_f5.lo n2b_d_f6.lo \ +- n2b_d_n1.lo n2b_d_n2.lo n2b_d_n3.lo n2b_d_n4.lo n2b_d_n5.lo n2b_d_n6.lo \ +- n2b_d_s1.lo n2b_d_s2.lo n2b_d_s3.lo n2b_d_s4.lo n2b_d_s5.lo n2b_d_s6.lo \ +- n2d_d_f1.lo n2d_d_f2.lo n2d_d_f3.lo n2d_d_f4.lo n2d_d_f5.lo n2d_d_f6.lo \ +- n2d_d_n1.lo n2d_d_n2.lo n2d_d_n3.lo n2d_d_n4.lo n2d_d_n5.lo n2d_d_n6.lo \ +- n2d_d_s1.lo n2d_d_s2.lo n2d_d_s3.lo n2d_d_s4.lo n2d_d_s5.lo n2d_d_s6.lo \ +- n2e_d_f1.lo n2e_d_f2.lo n2e_d_f3.lo n2e_d_f4.lo n2e_d_f5.lo n2e_d_f6.lo \ +- n2e_d_n1.lo n2e_d_n2.lo n2e_d_n3.lo n2e_d_n4.lo n2e_d_n5.lo n2e_d_n6.lo \ +- n2e_d_s1.lo n2e_d_s2.lo n2e_d_s3.lo n2e_d_s4.lo n2e_d_s5.lo n2e_d_s6.lo +- +-.S.o: +- $(CC) -c $< +- +-.S.lo: +- $(LIBTOOL) --mode=compile $(CC) -c $< +- ++libucl_la_SOURCES += \ ++ cpuid.S crc_asm.S crcs_asm.S rdtsc.S rdtsca.S \ ++ n2b_d_f1.S n2b_d_f2.S n2b_d_f3.S n2b_d_f4.S n2b_d_f5.S n2b_d_f6.S \ ++ n2b_d_n1.S n2b_d_n2.S n2b_d_n3.S n2b_d_n4.S n2b_d_n5.S n2b_d_n6.S \ ++ n2b_d_s1.S n2b_d_s2.S n2b_d_s3.S n2b_d_s4.S n2b_d_s5.S n2b_d_s6.S \ ++ n2d_d_f1.S n2d_d_f2.S n2d_d_f3.S n2d_d_f4.S n2d_d_f5.S n2d_d_f6.S \ ++ n2d_d_n1.S n2d_d_n2.S n2d_d_n3.S n2d_d_n4.S n2d_d_n5.S n2d_d_n6.S \ ++ n2d_d_s1.S n2d_d_s2.S n2d_d_s3.S n2d_d_s4.S n2d_d_s5.S n2d_d_s6.S \ ++ n2e_d_f1.S n2e_d_f2.S n2e_d_f3.S n2e_d_f4.S n2e_d_f5.S n2e_d_f6.S \ ++ n2e_d_n1.S n2e_d_n2.S n2e_d_n3.S n2e_d_n4.S n2e_d_n5.S n2e_d_n6.S \ ++ n2e_d_s1.S n2e_d_s2.S n2e_d_s3.S n2e_d_s4.S n2e_d_s5.S n2e_d_s6.S + endif +- diff --git a/dev-libs/ucl/files/ucl-1.03-x32.patch b/dev-libs/ucl/files/ucl-1.03-x32.patch new file mode 100644 index 000000000000..ac8657880f31 --- /dev/null +++ b/dev-libs/ucl/files/ucl-1.03-x32.patch @@ -0,0 +1,173 @@ +port ucl to the x32 ABI + +https://bugs.gentoo.org/426334 + +--- a/acc/acc_arch.h ++++ b/acc/acc_arch.h +@@ -19,6 +19,7 @@ + * ACC_ARCH_UNKNOWN [default] + * ACC_ARCH_ALPHA + * ACC_ARCH_AMD64 aka x86-64 or ia32e ++ * ACC_ARCH_X32 aka x86-32 + * ACC_ARCH_C166 + * ACC_ARCH_IA16 Intel Architecture (8088, 8086, 80186, 80286) + * ACC_ARCH_IA32 Intel Architecture (80386+) +@@ -42,8 +43,13 @@ + # define ACC_ARCH_IA16 1 + # define ACC_INFO_ARCH "ia16" + #elif defined(__amd64__) || defined(__x86_64__) || defined(_M_AMD64) ++# ifdef __ILP32__ ++# define ACC_ARCH_X32 1 ++# define ACC_INFO_ARCH "x32" ++# else + # define ACC_ARCH_AMD64 1 + # define ACC_INFO_ARCH "amd64" ++# endif + #elif (UINT_MAX <= ACC_0xffffL) && defined(__AVR__) + # define ACC_ARCH_AVR 1 + # define ACC_INFO_ARCH "avr" +@@ -92,7 +98,7 @@ + #endif + + +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA16 || ACC_ARCH_IA32) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA16 || ACC_ARCH_IA32 || ACC_ARCH_X32) + # define ACC_ENDIAN_LITTLE_ENDIAN 1 + # define ACC_INFO_ENDIAN "little-endian" + #elif (ACC_ARCH_M68K) +--- a/acc/acc_chk.ch ++++ b/acc/acc_chk.ch +@@ -407,7 +407,7 @@ + #if (ACC_ARCH_IA16) + ACCCHK_ASSERT(sizeof(size_t) == 2) + ACCCHK_ASSERT(sizeof(acc_intptr_t) == sizeof(void *)) +-#elif (ACC_ARCH_IA32 || ACC_ARCH_M68K) ++#elif (ACC_ARCH_IA32 || ACC_ARCH_M68K || ACC_ARCH_X32) + ACCCHK_ASSERT(sizeof(size_t) == 4) + ACCCHK_ASSERT(sizeof(ptrdiff_t) == 4) + ACCCHK_ASSERT(sizeof(acc_intptr_t) == sizeof(void *)) +--- a/acc/acc_lib.h ++++ b/acc/acc_lib.h +@@ -423,13 +423,13 @@ ACCLIB_EXTERN(void, acc_set_le64) (acc_hvoid_p, acc_uint64l_t); + #endif + + /* inline versions */ +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) + # define ACC_GET_LE16(p) (* (const unsigned short *) (p)) + # define ACC_GET_LE32(p) (* (const acc_uint32e_t *) (p)) + # define ACC_SET_LE16(p,v) (* (unsigned short *) (p) = (unsigned short) (v)) + # define ACC_SET_LE32(p,v) (* (acc_uint32e_t *) (p) = (acc_uint32e_t) (v)) + #endif +-#if (ACC_ARCH_AMD64) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_X32) + # define ACC_GET_LE64(p) (* (const acc_uint64l_t *) (p)) + # define ACC_SET_LE64(p,v) (* (acc_uint64l_t *) (p) = (acc_uint64l_t) (v)) + #endif +--- a/acc/acclib/bele.ch ++++ b/acc/acclib/bele.ch +@@ -71,7 +71,7 @@ ACCLIB_PUBLIC(void, acc_set_be32) (acc_hvoid_p p, acc_uint32l_t v) + + ACCLIB_PUBLIC(unsigned, acc_get_le16) (const acc_hvoid_p p) + { +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) + return (* (const unsigned short *) (p)); + #else + const acc_hbyte_p b = (const acc_hbyte_p) p; +@@ -87,7 +87,7 @@ ACCLIB_PUBLIC(acc_uint32l_t, acc_get_le24) (const acc_hvoid_p p) + + ACCLIB_PUBLIC(acc_uint32l_t, acc_get_le32) (const acc_hvoid_p p) + { +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) + return (* (const acc_uint32e_t *) (p)); + #else + const acc_hbyte_p b = (const acc_hbyte_p) p; +@@ -102,7 +102,7 @@ ACCLIB_PUBLIC(acc_uint32l_t, acc_get_le32) (const acc_hvoid_p p) + + ACCLIB_PUBLIC(void, acc_set_le16) (acc_hvoid_p p, unsigned v) + { +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) + (* (unsigned short *) (p) = (unsigned short) (v)); + #else + acc_hbyte_p b = (acc_hbyte_p) p; +@@ -121,7 +121,7 @@ ACCLIB_PUBLIC(void, acc_set_le24) (acc_hvoid_p p, acc_uint32l_t v) + + ACCLIB_PUBLIC(void, acc_set_le32) (acc_hvoid_p p, acc_uint32l_t v) + { +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) + (* (acc_uint32e_t *) (p) = (acc_uint32e_t) (v)); + #else + acc_hbyte_p b = (acc_hbyte_p) p; +@@ -191,7 +191,7 @@ ACCLIB_PUBLIC(void, acc_set_be64) (acc_hvoid_p p, acc_uint64l_t v) + + ACCLIB_PUBLIC(acc_uint64l_t, acc_get_le64) (const acc_hvoid_p p) + { +-#if (ACC_ARCH_AMD64) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_X32) + return (* (const acc_uint64l_t *) (p)); + #elif (ACC_ARCH_IA32) + const acc_uint32e_t* b = (const acc_uint32e_t*) p; +@@ -211,7 +211,7 @@ ACCLIB_PUBLIC(acc_uint64l_t, acc_get_le64) (const acc_hvoid_p p) + + ACCLIB_PUBLIC(void, acc_set_le64) (acc_hvoid_p p, acc_uint64l_t v) + { +-#if (ACC_ARCH_AMD64) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_X32) + (* (acc_uint64l_t *) (p)) = v; + #elif (ACC_ARCH_IA32) + (((acc_uint32e_t *)(p))[0] = (acc_uint32e_t) (v >> 0)); +--- a/acc/acclib/perfctr.ch ++++ b/acc/acclib/perfctr.ch +@@ -63,7 +63,7 @@ ACCLIB_PUBLIC(int, acc_perfctr_open) (acc_perfctr_handle_p h) + break; /* no working TSC available */ + case PERFCTR_X86_AMD_K7: + #endif +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) + case PERFCTR_X86_AMD_K8: + case PERFCTR_X86_AMD_K8C: + cc->tsc_on = 1; cc->nractrs = 2; +--- a/acc/acclib/rdtsc.ch ++++ b/acc/acclib/rdtsc.ch +@@ -21,7 +21,7 @@ + #if defined(acc_int32e_t) + + +-#if ((ACC_ARCH_AMD64 || ACC_ARCH_IA32) && ACC_CC_GNUC) ++#if ((ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) && ACC_CC_GNUC) + # if (ACC_CC_GNUC >= 0x020000ul) + # define __ACCLIB_RDTSC_REGS : : "r" (t) : "cc", "memory", "eax", "edx" + # else +@@ -38,7 +38,7 @@ + + ACCLIB_PUBLIC(int, acc_tsc_read) (acc_uint32e_t* t) + { +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) && defined(__ACCLIB_RDTSC_REGS) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) && defined(__ACCLIB_RDTSC_REGS) + __asm__ __volatile__( + "clc \n" ".byte 0x0f, 0x31\n" + "movl %%eax,(%0)\n" "movl %%edx,4(%0)\n" +@@ -73,7 +73,7 @@ ACCLIB_PUBLIC(int, acc_tsc_read) (acc_uint32e_t* t) + + ACCLIB_PUBLIC(int, acc_tsc_read_add) (acc_uint32e_t* t) + { +-#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32) && defined(__ACCLIB_RDTSC_REGS) ++#if (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) && defined(__ACCLIB_RDTSC_REGS) + __asm__ __volatile__( + "clc \n" ".byte 0x0f, 0x31\n" + "addl %%eax,(%0)\n" "adcl $0,%%edx\n" "addl %%edx,4(%0)\n" +--- a/src/ucl_conf.h ++++ b/src/ucl_conf.h +@@ -172,7 +172,7 @@ + #undef UA_SET2 + #undef UA_GET4 + #undef UA_SET4 +-#if 1 && (ACC_ARCH_AMD64 || ACC_ARCH_IA32) ++#if 1 && (ACC_ARCH_AMD64 || ACC_ARCH_IA32 || ACC_ARCH_X32) + # define UA_GET2(p) (* (const ucl_ushortp) (p)) + # define UA_SET2(p) (* (ucl_ushortp) (p)) + # define UA_GET4(p) (* (const acc_uint32e_t *) (p)) diff --git a/dev-libs/ucl/metadata.xml b/dev-libs/ucl/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/dev-libs/ucl/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/dev-libs/ucl/ucl-1.03-r1.ebuild b/dev-libs/ucl/ucl-1.03-r1.ebuild new file mode 100644 index 000000000000..38a7acb307b6 --- /dev/null +++ b/dev-libs/ucl/ucl-1.03-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils flag-o-matic + +DESCRIPTION="the UCL Compression Library" +HOMEPAGE="http://www.oberhumer.com/opensource/ucl/" +SRC_URI="http://www.oberhumer.com/opensource/ucl/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="static-libs" + +DEPEND="!!dev-libs/libucl" + +src_prepare() { + epatch "${FILESDIR}"/${P}-CFLAGS.patch + epatch "${FILESDIR}"/${P}-x32.patch #426334 + + # lzo (and ucl) have some weird sort of mfx_* set of autoconf macros + # which may only be distributed with lzo itself? Rescue them and + # place them into acinclude.m4 because there doesn't seem to be an + # m4/... + sed -n -e '/^AC_DEFUN.*mfx_/,/^])#$/p' aclocal.m4 > acinclude.m4 || die "Unable to rescue mfx_* autoconf macros." + + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die + + eautoreconf +} + +src_configure() { + # bug #585632 + append-cflags -std=c90 + + econf \ + --enable-shared \ + $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files +} |