summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-07-20 08:39:01 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-07-20 08:40:38 +0100
commit9a8ce341be72dd7df418fc472968f1e44851e427 (patch)
treed43e900a69f81782c2a812a734079b8cd72b68c2 /app-portage/deltup
parentdev-util/cmake: Bump to version 3.9.0. Removed old. (diff)
downloadgentoo-9a8ce341be72dd7df418fc472968f1e44851e427.tar.gz
gentoo-9a8ce341be72dd7df418fc472968f1e44851e427.tar.bz2
gentoo-9a8ce341be72dd7df418fc472968f1e44851e427.zip
app-portage/deltup: respect user's LDFLAGS, use CX, not CC
While at it dropped use of unknown command: epatch_user: command not found Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'app-portage/deltup')
-rw-r--r--app-portage/deltup/deltup-0.4.6-r1.ebuild (renamed from app-portage/deltup/deltup-0.4.6.ebuild)10
-rw-r--r--app-portage/deltup/files/deltup-0.4.6-cxx.patch23
-rw-r--r--app-portage/deltup/files/deltup-0.4.6-ldflags.patch9
3 files changed, 37 insertions, 5 deletions
diff --git a/app-portage/deltup/deltup-0.4.6.ebuild b/app-portage/deltup/deltup-0.4.6-r1.ebuild
index cdc06476fffe..9c4ebf21a658 100644
--- a/app-portage/deltup/deltup-0.4.6.ebuild
+++ b/app-portage/deltup/deltup-0.4.6-r1.ebuild
@@ -26,13 +26,13 @@ DEPEND="
RDEPEND="${DEPEND}
|| ( dev-util/bdelta =dev-util/xdelta-1* )"
-src_prepare () {
- default
- epatch_user
-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.4.6-ldflags.patch
+ "${FILESDIR}"/${PN}-0.4.6-cxx.patch
+)
src_compile () {
- emake CC=$(tc-getCXX)
+ emake CXX=$(tc-getCXX)
}
src_install () {
diff --git a/app-portage/deltup/files/deltup-0.4.6-cxx.patch b/app-portage/deltup/files/deltup-0.4.6-cxx.patch
new file mode 100644
index 000000000000..6a07dc1ee0a1
--- /dev/null
+++ b/app-portage/deltup/files/deltup-0.4.6-cxx.patch
@@ -0,0 +1,23 @@
+diff --git a/Makefile b/Makefile
+index 6a3aa95..a591a6f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -7,3 +7,3 @@ CC = g++
+ objfiles=bpatch.o archfunc.o file.o system.o tmpstore.o deltup.o
+-libs=-lstdc++ -lz -lbz2 -lcrypto #-lssl
++libs=-lz -lbz2 -lcrypto #-lssl
+
+@@ -12,3 +12,3 @@ libs=-lstdc++ -lz -lbz2 -lcrypto #-lssl
+ %.o : %.cpp
+- ${CC} -c $< -o $@ ${CXXFLAGS} #-g #-Wall -pedantic
++ ${CXX} -c $< -o $@ ${CXXFLAGS} #-g #-Wall -pedantic
+
+@@ -17,6 +17,6 @@ all: deltup
+ depend:
+- gcc -MM *.cpp > .depend
++ ${CXX} -MM *.cpp > .depend
+
+ deltup: $(objfiles)
+- ${CC} $(objfiles) ${LDFLAGS} -o deltup $(libs)
++ ${CXX} $(objfiles) ${LDFLAGS} -o deltup $(libs)
+
diff --git a/app-portage/deltup/files/deltup-0.4.6-ldflags.patch b/app-portage/deltup/files/deltup-0.4.6-ldflags.patch
new file mode 100644
index 000000000000..0d06255abcd2
--- /dev/null
+++ b/app-portage/deltup/files/deltup-0.4.6-ldflags.patch
@@ -0,0 +1,9 @@
+diff --git a/Makefile b/Makefile
+index 6a3aa95..6e7c5cf 100644
+--- a/Makefile
++++ b/Makefile
+@@ -20,3 +20,3 @@ depend:
+ deltup: $(objfiles)
+- ${CC} $(objfiles) ${CXXFLAGS} -o deltup $(libs)
++ ${CC} $(objfiles) ${LDFLAGS} -o deltup $(libs)
+