Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 756367
Collapse All | Expand All

(-)a/dev-lang/duktape/duktape-2.6.0.ebuild (-2 / +2 lines)
Lines 20-25 PATCHES=( Link Here
20
)
20
)
21
21
22
src_prepare() {
22
src_prepare() {
23
	default
24
23
	# Set install path
25
	# Set install path
24
	sed -i "s#INSTALL_PREFIX = /usr/local#INSTALL_PREFIX = ${ED}/usr#" \
26
	sed -i "s#INSTALL_PREFIX = /usr/local#INSTALL_PREFIX = ${ED}/usr#" \
25
			Makefile.sharedlibrary || die "failed to set install path"
27
			Makefile.sharedlibrary || die "failed to set install path"
Lines 33-40 src_prepare() { Link Here
33
		Makefile.sharedlibrary || die
35
		Makefile.sharedlibrary || die
34
36
35
	mv Makefile.sharedlibrary Makefile || die "failed to rename makefile"
37
	mv Makefile.sharedlibrary Makefile || die "failed to rename makefile"
36
37
	default
38
}
38
}
39
39
40
src_compile() {
40
src_compile() {
(-)a/dev-lang/duktape/files/duktape-2.6.0-respect-tc-env.patch (-7 / +6 lines)
Lines 1-8 Link Here
1
diff --git a/Makefile b/Makefile
1
diff --git a/Makefile.sharedlibrary b/Makefile.sharedlibrary
2
index 156ea96..a0997b1 100644
2
index 156ea96..a0997b1 100644
3
--- a/Makefile
3
--- a/Makefile.sharedlibrary
4
+++ b/Makefile
4
+++ b/Makefile.sharedlibrary
5
@@ -52,7 +52,7 @@ INSTALL_PREFIX = /var/tmp/portage/dev-lang/duktape-2.6.0/image/usr
5
@@ -52,7 +52,7 @@ INSTALL_PREFIX = /usr/local
6
 DUKTAPE_SRCDIR = ./src
6
 DUKTAPE_SRCDIR = ./src
7
 #DUKTAPE_SRCDIR = ./src-noline
7
 #DUKTAPE_SRCDIR = ./src-noline
8
 
8
 
Lines 29-33 index 156ea96..a0997b1 100644 Link Here
29
 
29
 
30
 CCOPTS = -I./examples/cmdline
30
 CCOPTS = -I./examples/cmdline
31
 duk:
31
 duk:
32
-	$(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib64 -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
32
-	$(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
33
+	$(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib64 ${CFLAGS} -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
33
+	$(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib ${CFLAGS} -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
34
- 

Return to bug 756367