diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2013-06-09 01:46:03 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2013-06-09 01:46:03 +0200 |
commit | 3eb80cce6de6c73145b7c2cb660ceac2355050b3 (patch) | |
tree | 0db5092caf415223d0ceba3a36f977a39e900749 | |
parent | app-crypt/openssl-af-alg: Move to EAPI=5, fix quotes, no KEYWORDS for live eb... (diff) | |
download | portage-3eb80cce6de6c73145b7c2cb660ceac2355050b3.tar.xz |
dev-lang/tcc: Move to EAPI 5, no KEYWORDS for live ebuild, fix quotes, remove old files
Package-Manager: portage-2.1.12.3
-rw-r--r-- | dev-lang/tcc/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lang/tcc/Manifest | 8 | ||||
-rw-r--r-- | dev-lang/tcc/files/0001-tcc-Linux-pthread-option-sets-D_REENTRANT-and-lpthre.patch | 54 | ||||
-rw-r--r-- | dev-lang/tcc/files/0002-tcc.c-skip-lpthread-when-c-option-specified.patch | 29 | ||||
-rw-r--r-- | dev-lang/tcc/files/0003-tcc.c-fix-an-error-when-you-build-an-object-file-wit.patch | 70 | ||||
-rw-r--r-- | dev-lang/tcc/files/tcc-0.9.25-flags.patch | 83 | ||||
-rw-r--r-- | dev-lang/tcc/tcc-9999.ebuild | 13 | ||||
-rw-r--r-- | metadata/md5-cache/dev-lang/tcc-9999 | 5 |
8 files changed, 18 insertions, 253 deletions
diff --git a/dev-lang/tcc/ChangeLog b/dev-lang/tcc/ChangeLog index 86cc9f9a..fe86b0e9 100644 --- a/dev-lang/tcc/ChangeLog +++ b/dev-lang/tcc/ChangeLog @@ -2,6 +2,14 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 08 Jun 2013; Bertrand Jacquin <beber@meleeweb.net> + -files/0001-tcc-Linux-pthread-option-sets-D_REENTRANT-and-lpthre.patch, + -files/0002-tcc.c-skip-lpthread-when-c-option-specified.patch, + -files/0003-tcc.c-fix-an-error-when-you-build-an-object-file-wit.patch, + -files/tcc-0.9.25-flags.patch, tcc-9999.ebuild: + dev-lang/tcc: Move to EAPI 5, no KEYWORDS for live ebuild, fix quotes, remove + old files + 28 May 2013; Bertrand Jacquin <beber@meleeweb.net> +metadata.xml: Add missing metadata.xml @@ -14,4 +22,3 @@ +files/tcc-0.9.25-flags.patch, +files/tcc-9999-XCC-to-CC.diff, +tcc-9999.ebuild: dev-lang: add a live ebuild for tcc which bring support for pthread - diff --git a/dev-lang/tcc/Manifest b/dev-lang/tcc/Manifest index e58d953d..7106943d 100644 --- a/dev-lang/tcc/Manifest +++ b/dev-lang/tcc/Manifest @@ -1,8 +1,4 @@ -AUX 0001-tcc-Linux-pthread-option-sets-D_REENTRANT-and-lpthre.patch 2022 SHA256 467a56857d975018180423342380cb677703b609085971d2273307d4b5169835 WHIRLPOOL 9fbf76c97c35fe7cd96e3079c2e70a8d865a967671efd0ad7dc1ccc65470689f3c2ca41edaf7e8f8a6ecdd87825e9a6d45b8211e4fe98e9c7a6d4125abbb926f -AUX 0002-tcc.c-skip-lpthread-when-c-option-specified.patch 1001 SHA256 4f747885c1d75527df42b099411717fb39b3490e6665cfba77ee68e900a857dc WHIRLPOOL c6a566fdd83e0fc7d956e96febca956b1cbd2d48c550c6bec6b34458842f785c7f4c0d0c3207f8936823eb66a3f8055263507ba7edbb5f6c240dadd79bd58bd5 -AUX 0003-tcc.c-fix-an-error-when-you-build-an-object-file-wit.patch 2190 SHA256 37da085e7712a8ad9b9c338e767e231d2ae1dbaa54eee2a602f0eecce3d15f5d WHIRLPOOL ff53df953feeadbeab892c6a391de3c554486b65543de76d324a87063656eae93220f08c3b581fbc60f21d6854849d9a2881e00bcaa8e60d1b47dd4e472a254a -AUX tcc-0.9.25-flags.patch 2768 SHA256 91011cc843a7563bc91ca71e9bcc8dcd95102d370b276b266f12a64ddd705070 WHIRLPOOL 97079b179a686c645a46163c11fe6229dfd4b3d77c07c3b24fcf77c71484a9a881abfebbc78915ba4f71aefd873e3c59ee25750e545c2c01fc552c4d4ba23f58 AUX tcc-9999-XCC-to-CC.diff 401 SHA256 2a1333397ce45df2523dc5815179a572ee5c4ef0a54afc45eb976443c26da43b WHIRLPOOL 91f0c24d1a93ec53830f2477607c59f0db9200470d66ab6d8df569a3db6ceee992699b30e5cba7a5799875077998bc4f23713f88d2f7fc3add5566c47a3e3e53 -EBUILD tcc-9999.ebuild 992 SHA256 8277ddd4f2b236819d43d20fd8f4d18c4b0788f618750ea9e8ed1210e122fe5e WHIRLPOOL 28e33ba662a18e407acc04f6a3053869993451bfceb10320a257df96892057f8de785d34f147570899cb4131cbeb0d6cbb260e828bbe3b44dba831b3d71d5ef9 -MISC ChangeLog 656 SHA256 bb7203de1075b16180920e42703b5b5497a3f650fd0e39312ac8aa1197635495 WHIRLPOOL 936f9f41e8dc15fbd168295eccc2d4e96d3eb68038a5f2be765a1b4d5505b4daf50f951ffb851dc78857a12aac6e955affd1d8835cadba2bd4abbdb42f0b7df1 +EBUILD tcc-9999.ebuild 983 SHA256 8aa541dedd97668b9f50657ef74752fd4090c1bd18f543d33513eb78f6575bf7 WHIRLPOOL 3131dde4cf1a0c16e7935fac1dddd9aafd00a57862de30af4045e71ebaa190c33356e68616c0a73c1edc60066cb55a82dfb4eec3c9b418e796e910897cf8ba4b +MISC ChangeLog 1064 SHA256 df637b9b4df0ed9873bba062bca6c59bbbfdce902bcb3e244833ce02f114f593 WHIRLPOOL 45129d25e050ca250cd7fc84a7cf9552111599bfc3600ef069b942a46db01d1197fa96e6552d9bc4cf2072648a3f10530f9b7ab572bd3ad3d14b4068c6a8723e MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630 diff --git a/dev-lang/tcc/files/0001-tcc-Linux-pthread-option-sets-D_REENTRANT-and-lpthre.patch b/dev-lang/tcc/files/0001-tcc-Linux-pthread-option-sets-D_REENTRANT-and-lpthre.patch deleted file mode 100644 index 7810f9d9..00000000 --- a/dev-lang/tcc/files/0001-tcc-Linux-pthread-option-sets-D_REENTRANT-and-lpthre.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 9036c18170ce5fdf386ef7f19b81e852b0a7b3e8 Mon Sep 17 00:00:00 2001 -From: Henry Kroll III <henry@comptune.com> -Date: Wed, 24 Nov 2010 16:42:08 -0800 -Subject: [PATCH 1/1] tcc: Linux -pthread option sets -D_REENTRANT and - -lpthread - ---- - tcc.c | 9 +++++++++ - 1 file changed, 9 insertions(+) - -diff --git a/tcc.c b/tcc.c -index da65e24..969e022 100644 ---- a/tcc.c -+++ b/tcc.c -@@ -61,6 +61,7 @@ static void help(void) - "Linker options:\n" - " -Ldir add library path 'dir'\n" - " -llib link with dynamic or static library 'lib'\n" -+ " -pthread link with -lpthread and -D_REENTRANT (POSIX Linux)\n" - " -shared generate a shared library\n" - " -soname set name for shared library to be used at runtime\n" - " -static static linking\n" -@@ -113,6 +114,7 @@ enum { - TCC_OPTION_nostdlib, - TCC_OPTION_print_search_dirs, - TCC_OPTION_rdynamic, -+ TCC_OPTION_pthread, - TCC_OPTION_run, - TCC_OPTION_v, - TCC_OPTION_w, -@@ -146,6 +148,7 @@ static const TCCOption tcc_options[] = { - { "shared", TCC_OPTION_shared, 0 }, - { "soname", TCC_OPTION_soname, TCC_OPTION_HAS_ARG }, - { "o", TCC_OPTION_o, TCC_OPTION_HAS_ARG }, -+ { "pthread", TCC_OPTION_pthread, 0}, - { "run", TCC_OPTION_run, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP }, - { "rdynamic", TCC_OPTION_rdynamic, 0 }, - { "r", TCC_OPTION_r, 0 }, -@@ -293,6 +296,12 @@ static int parse_args(TCCState *s, int argc, char **argv) - dynarray_add((void ***)&files, &nb_files, r); - nb_libraries++; - break; -+ case TCC_OPTION_pthread: -+/* fixme: these options could be different on your platform */ -+ dynarray_add((void ***)&files, &nb_files, "-lpthread"); -+ nb_libraries++; -+ tcc_define_symbol(s, "_REENTRANT", "1"); -+ break; - case TCC_OPTION_bench: - do_bench = 1; - break; --- -1.8.0.2 - diff --git a/dev-lang/tcc/files/0002-tcc.c-skip-lpthread-when-c-option-specified.patch b/dev-lang/tcc/files/0002-tcc.c-skip-lpthread-when-c-option-specified.patch deleted file mode 100644 index 30a7d6e3..00000000 --- a/dev-lang/tcc/files/0002-tcc.c-skip-lpthread-when-c-option-specified.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 9e406656c739f67e5fdf8b115da40b8381b9286b Mon Sep 17 00:00:00 2001 -From: Henry Kroll III <henry@comptune.com> -Date: Tue, 30 Nov 2010 13:58:18 -0800 -Subject: [PATCH 1/1] tcc.c: skip -lpthread when -c option specified - ---- - tcc.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/tcc.c b/tcc.c -index 969e022..6bd4ca1 100644 ---- a/tcc.c -+++ b/tcc.c -@@ -298,8 +298,10 @@ static int parse_args(TCCState *s, int argc, char **argv) - break; - case TCC_OPTION_pthread: - /* fixme: these options could be different on your platform */ -- dynarray_add((void ***)&files, &nb_files, "-lpthread"); -- nb_libraries++; -+ if(output_type != TCC_OUTPUT_OBJ){ -+ dynarray_add((void ***)&files, &nb_files, "-lpthread"); -+ nb_libraries++; -+ } - tcc_define_symbol(s, "_REENTRANT", "1"); - break; - case TCC_OPTION_bench: --- -1.8.0.2 - diff --git a/dev-lang/tcc/files/0003-tcc.c-fix-an-error-when-you-build-an-object-file-wit.patch b/dev-lang/tcc/files/0003-tcc.c-fix-an-error-when-you-build-an-object-file-wit.patch deleted file mode 100644 index 8988d39f..00000000 --- a/dev-lang/tcc/files/0003-tcc.c-fix-an-error-when-you-build-an-object-file-wit.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 0a50e6c933cb3d470494c203e90808cef6873b06 Mon Sep 17 00:00:00 2001 -From: Sergei Trofimovich <st@anti-virus.by> -Date: Tue, 4 Jan 2011 11:17:52 +0200 -Subject: [PATCH 1/1] tcc.c: fix an error when you build an object file with - '-pthread' key set - -The problem was partially fixed by Henry in the following patch: - - tcc.c: skip -lpthread when -c option specified - -But that patch had one brawback: it is sensitive to argument order, -as decision is taken during commandline parsing: - - $ tcc -c a.c -o a.o -pthread # 1. works fine - tcc: error: file 'a.c' not found - - $ tcc -pthread -c a.c -o a.o # 2. blows - tcc: error: cannot specify libraries with -c - -This patch fixes case 2. - -Signed-off-by: Sergei Trofimovich <st@anti-virus.by> ---- - tcc.c | 16 +++++++++++----- - 1 file changed, 11 insertions(+), 5 deletions(-) - -diff --git a/tcc.c b/tcc.c -index 3c70f73..e0d6386 100644 ---- a/tcc.c -+++ b/tcc.c -@@ -294,6 +294,9 @@ static int parse_args(TCCState *s, int argc, char **argv) - const TCCOption *popt; - const char *optarg, *p1, *r1; - char *r; -+ int was_pthread; -+ -+ was_pthread = 0; /* is set if commandline contains -pthread key */ - - optind = 0; - while (optind < argc) { -@@ -375,11 +378,7 @@ static int parse_args(TCCState *s, int argc, char **argv) - nb_libraries++; - break; - case TCC_OPTION_pthread: -- /* fixme: these options could be different on your platform */ -- if(output_type != TCC_OUTPUT_OBJ){ -- dynarray_add((void ***)&files, &nb_files, "-lpthread"); -- nb_libraries++; -- } -+ was_pthread = 1; - tcc_define_symbol(s, "_REENTRANT", "1"); - break; - case TCC_OPTION_bench: -@@ -494,6 +493,13 @@ static int parse_args(TCCState *s, int argc, char **argv) - } - } - } -+ /* fixme: these options could be different on your platform */ -+ if (was_pthread -+ && output_type != TCC_OUTPUT_OBJ) -+ { -+ dynarray_add((void ***)&files, &nb_files, "-lpthread"); -+ nb_libraries++; -+ } - return optind + 1; - } - --- -1.8.0.2 - diff --git a/dev-lang/tcc/files/tcc-0.9.25-flags.patch b/dev-lang/tcc/files/tcc-0.9.25-flags.patch deleted file mode 100644 index 42ac9f3b..00000000 --- a/dev-lang/tcc/files/tcc-0.9.25-flags.patch +++ /dev/null @@ -1,83 +0,0 @@ -diff --git a/Makefile b/Makefile -index 1a2b5f7..30526b2 100644 ---- a/Makefile -+++ b/Makefile -@@ -115,32 +115,32 @@ all: $(PROGS) $(LIBTCC1) $(BCHECK_O) libtcc.a tcc-doc.html tcc.1 libtcc_test$(EX - - # Host Tiny C Compiler - tcc$(EXESUF): $(NATIVE_FILES) -- $(CC) -o $@ $< $(NATIVE_TARGET) $(CFLAGS) $(LIBS) -+ $(CC) -o $@ $(NATIVE_TARGET) $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - # Cross Tiny C Compilers - i386-tcc$(EXESUF): $(I386_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_I386 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_I386 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - i386-win32-tcc$(EXESUF): $(WIN32_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_PE $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_PE $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - x86_64-tcc$(EXESUF): $(X86_64_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_X86_64 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_X86_64 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - c67-tcc$(EXESUF): $(C67_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_C67 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_C67 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-fpa$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-fpa-ld$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM -DLDOUBLE_SIZE=12 $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM -DLDOUBLE_SIZE=12 $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-vfp$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM -DTCC_ARM_VFP $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM -DTCC_ARM_VFP $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - arm-tcc-vfp-eabi$(EXESUF): $(ARM_FILES) -- $(CC) -o $@ $< -DTCC_TARGET_ARM -DTCC_ARM_EABI $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -DTCC_TARGET_ARM -DTCC_ARM_EABI $(CFLAGS) $(LDFLAGS) $< $(LIBS) - - # libtcc generation and test - libtcc.o: $(NATIVE_FILES) -@@ -150,14 +150,14 @@ libtcc.a: libtcc.o - $(AR) rcs $@ $^ - - libtcc_test$(EXESUF): tests/libtcc_test.c libtcc.a -- $(CC) -o $@ $^ -I. $(CFLAGS) $(LIBS) -+ $(CC) -o $@ -I. $(CFLAGS) $(LDFLAGS) $^ $(LIBS) - - libtest: libtcc_test$(EXESUF) $(LIBTCC1) - ./libtcc_test$(EXESUF) lib_path=. - - # profiling version - tcc_p$(EXESUF): $(NATIVE_FILES) -- $(CC) -o $@ $< $(NATIVE_TARGET) $(CFLAGS_P) $(LIBS_P) -+ $(CC) -o $@ $(NATIVE_TARGET) $(CFLAGS_P) $(LDFLAGS) $< $(LIBS_P) - - # windows utilities - tiny_impdef$(EXESUF): win32/tools/tiny_impdef.c -@@ -180,16 +180,16 @@ LIBTCC1_OBJS+=alloca86.o alloca86-bt.o - endif - - %.o: %.c -- $(LIBTCC1_CC) -o $@ -c $< -O2 -Wall -+ $(LIBTCC1_CC) $(CFLAGS) -c $< -o $@ - - %.o: %.S -- $(LIBTCC1_CC) -o $@ -c $< -+ $(LIBTCC1_CC) $(ASFLAGS) -c $< -o $@ - - libtcc1.a: $(LIBTCC1_OBJS) - $(AR) rcs $@ $^ - - bcheck.o: bcheck.c -- $(CC) -o $@ -c $< -O2 -Wall -+ $(CC) $(CFLAGS) -c $< -o $@ - - # install - TCC_INCLUDES = stdarg.h stddef.h stdbool.h float.h varargs.h tcclib.h diff --git a/dev-lang/tcc/tcc-9999.ebuild b/dev-lang/tcc/tcc-9999.ebuild index 0ad2d7e4..3a505719 100644 --- a/dev-lang/tcc/tcc-9999.ebuild +++ b/dev-lang/tcc/tcc-9999.ebuild @@ -1,12 +1,11 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=4 - +EAPI=5 inherit eutils toolchain-funcs git-2 -KEYWORDS="~amd64 ~x86" +KEYWORDS="" IUSE="doc" DESCRIPTION="A very small C compiler for ix86/amd64" @@ -26,7 +25,7 @@ EGIT_COMMIT="HEAD" RESTRICT="test" src_prepare() { - epatch "${FILESDIR}"/${PF}-XCC-to-CC.diff + epatch "${FILESDIR}/${PF}-XCC-to-CC.diff" } src_configure() { @@ -40,10 +39,10 @@ src_configure() { } src_install() { - emake install DESTDIR="${D}" + emake install DESTDIR="${ED}" dodoc Changelog README TODO VERSION use doc && dohtml tcc-doc.html - exeinto /usr/share/doc/${PF}/examples + exeinto "/usr/share/doc/${PF}/examples" doexe examples/ex*.c } diff --git a/metadata/md5-cache/dev-lang/tcc-9999 b/metadata/md5-cache/dev-lang/tcc-9999 index 8559ee1a..f58070aa 100644 --- a/metadata/md5-cache/dev-lang/tcc-9999 +++ b/metadata/md5-cache/dev-lang/tcc-9999 @@ -1,13 +1,12 @@ DEFINED_PHASES=configure install prepare unpack DEPEND=dev-vcs/git DESCRIPTION=A very small C compiler for ix86/amd64 -EAPI=4 +EAPI=5 HOMEPAGE=http://bellard.org/tcc/ IUSE=doc -KEYWORDS=~amd64 ~x86 LICENSE=LGPL-2.1 RDEPEND=!dev-lang/tendra RESTRICT=test SLOT=0 _eclasses_=eutils f31a0ec0d081047cbf9c0bbb4822d831 git-2 e92e09651292b1bef5656592364550f7 multilib 892e597faee02a5b94eb02ab512e7622 toolchain-funcs 7ffd28a8c7eea27218865352bfd3ab2f user d0a4d0735a6c0183d707ca919bd72f28 -_md5_=2efea5ae2ef79959117319749c6a1a15 +_md5_=95cf95d492c44ccd39df361698ee0fa8 |