1 |
commit: e76e424631447234a00ab1d0b559e3abea3ea28d |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 19 02:11:30 2015 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 19 17:10:35 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e76e4246 |
7 |
|
8 |
dev-embedded/sdcc: Copy current release ebuild to live ebuild |
9 |
|
10 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
11 |
|
12 |
dev-embedded/sdcc/sdcc-9999.ebuild | 47 ++++++++++++++++++++++++++++---------- |
13 |
1 file changed, 35 insertions(+), 12 deletions(-) |
14 |
|
15 |
diff --git a/dev-embedded/sdcc/sdcc-9999.ebuild b/dev-embedded/sdcc/sdcc-9999.ebuild |
16 |
index c0f1553..6091311 100644 |
17 |
--- a/dev-embedded/sdcc/sdcc-9999.ebuild |
18 |
+++ b/dev-embedded/sdcc/sdcc-9999.ebuild |
19 |
@@ -20,9 +20,20 @@ fi |
20 |
DESCRIPTION="Small device C compiler (for various microprocessors)" |
21 |
HOMEPAGE="http://sdcc.sourceforge.net/" |
22 |
|
23 |
-LICENSE="GPL-2" |
24 |
+LICENSE="GPL-2 ZLIB |
25 |
+ non-free? ( MicroChip-SDCC ) |
26 |
+ packihx? ( public-domain )" |
27 |
SLOT="0" |
28 |
-IUSE="+boehm-gc doc" |
29 |
+IUSE="mcs51 z80 z180 r2k r3ka gbz80 tlcs90 ds390 ds400 pic14 pic16 hc08 s08 stm8 |
30 |
+ucsim device-lib packihx +sdcpp sdcdb sdbinutils non-free +boehm-gc doc" |
31 |
+ |
32 |
+REQUIRED_USE=" |
33 |
+ mcs51? ( sdbinutils ) |
34 |
+ ds390? ( sdbinutils ) |
35 |
+ ds400? ( sdbinutils ) |
36 |
+ hc08? ( sdbinutils ) |
37 |
+ s08? ( sdbinutils )" |
38 |
+ |
39 |
RESTRICT="strip" |
40 |
|
41 |
RDEPEND="dev-libs/boost:= |
42 |
@@ -41,12 +52,10 @@ if docs_compile ; then |
43 |
)" |
44 |
fi |
45 |
|
46 |
-S=${WORKDIR}/${PN} |
47 |
- |
48 |
src_prepare() { |
49 |
# Fix conflicting variable names between Gentoo and sdcc |
50 |
find \ |
51 |
- '(' -name 'Makefile*.in' -o -name configure ')' \ |
52 |
+ '(' -name 'Makefile*.in' -o -name 'configure' ')' \ |
53 |
-exec sed -r -i \ |
54 |
-e 's:\<(PORTDIR|ARCH)\>:SDCC\1:g' \ |
55 |
{} + || die |
56 |
@@ -57,15 +66,8 @@ src_prepare() { |
57 |
-e "/^AR =/s:=.*:=$(tc-getAR):" \ |
58 |
support/cpp/Makefile.in || die |
59 |
|
60 |
- # We'll install doc manually |
61 |
- sed -i -e '/SDCC_DOC/d' Makefile.in || die |
62 |
- sed -i -e 's/ doc//' sim/ucsim/packages_in.mk || die |
63 |
- |
64 |
# Make sure timestamps don't get messed up. |
65 |
[[ ${PV} == "9999" ]] && find "${S}" -type f -exec touch -r . {} + |
66 |
- |
67 |
- # workaround parallel build issues with lyx |
68 |
- mkdir -p "${HOME}"/.lyx |
69 |
} |
70 |
|
71 |
src_configure() { |
72 |
@@ -77,6 +79,27 @@ src_configure() { |
73 |
ac_cv_prog_AR="$(tc-getAR)" \ |
74 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
75 |
--without-ccache \ |
76 |
+ $(use_enable mcs51 mcs51-port) \ |
77 |
+ $(use_enable z80 z80-port) \ |
78 |
+ $(use_enable z180 z180-port) \ |
79 |
+ $(use_enable r2k r2k-port) \ |
80 |
+ $(use_enable r3ka r3ka-port) \ |
81 |
+ $(use_enable gbz80 gbz80-port) \ |
82 |
+ $(use_enable tlcs90 tlcs90-port) \ |
83 |
+ $(use_enable ds390 ds390-port) \ |
84 |
+ $(use_enable ds400 ds400-port) \ |
85 |
+ $(use_enable pic14 pic14-port) \ |
86 |
+ $(use_enable pic16 pic16-port) \ |
87 |
+ $(use_enable hc08 hc08-port) \ |
88 |
+ $(use_enable s08 s08-port) \ |
89 |
+ $(use_enable stm8 stm8-port) \ |
90 |
+ $(use_enable ucsim ucsim) \ |
91 |
+ $(use_enable device-lib device-lib) \ |
92 |
+ $(use_enable packihx packihx) \ |
93 |
+ $(use_enable sdcpp sdcpp) \ |
94 |
+ $(use_enable sdcdb sdcdb) \ |
95 |
+ $(use_enable sdbinutils sdbinutils) \ |
96 |
+ $(use_enable non-free non-free) \ |
97 |
$(use_enable boehm-gc libgc) \ |
98 |
$(docs_compile && use_enable doc || echo --disable-doc) |
99 |
} |