1 |
commit: 6fbb5f0e32f5eab40f8cf30a73c5002139b3c347 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 17 21:57:51 2019 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 17 21:58:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fbb5f0e |
7 |
|
8 |
dev-vcs/svn2git: Fix compilation |
9 |
|
10 |
Closes: https://bugs.gentoo.org/682802 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
|
14 |
dev-vcs/svn2git/files/svn2git-1.0.13-src-pro.patch | 23 ++++++++++ |
15 |
dev-vcs/svn2git/svn2git-1.0.13-r1.ebuild | 51 ++++++++++++++++++++++ |
16 |
2 files changed, 74 insertions(+) |
17 |
|
18 |
diff --git a/dev-vcs/svn2git/files/svn2git-1.0.13-src-pro.patch b/dev-vcs/svn2git/files/svn2git-1.0.13-src-pro.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..74ee4306b3c |
21 |
--- /dev/null |
22 |
+++ b/dev-vcs/svn2git/files/svn2git-1.0.13-src-pro.patch |
23 |
@@ -0,0 +1,23 @@ |
24 |
+From 59a038796e6bb55b11b6d82f7d5aae42399da38a Mon Sep 17 00:00:00 2001 |
25 |
+From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= <Bjoern@×××××××.net> |
26 |
+Date: Fri, 12 Apr 2019 01:39:51 +0200 |
27 |
+Subject: [PATCH] Fix evaluation of emptyness of SVN_LIBDIR that sometimes |
28 |
+ always gives false, sometime always true, but never what is intended |
29 |
+ |
30 |
+--- |
31 |
+ src/src.pro | 2 +- |
32 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
33 |
+ |
34 |
+diff --git a/src/src.pro b/src/src.pro |
35 |
+index 426d304..cfbd865 100644 |
36 |
+--- a/src/src.pro |
37 |
++++ b/src/src.pro |
38 |
+@@ -28,7 +28,7 @@ DEPENDPATH += . |
39 |
+ QT = core |
40 |
+ |
41 |
+ INCLUDEPATH += . $$SVN_INCLUDE $$APR_INCLUDE |
42 |
+-!isEmpty($$SVN_LIBDIR): LIBS += -L$$SVN_LIBDIR |
43 |
++!isEmpty(SVN_LIBDIR): LIBS += -L$$SVN_LIBDIR |
44 |
+ LIBS += -lsvn_fs-1 -lsvn_repos-1 -lapr-1 -lsvn_subr-1 |
45 |
+ |
46 |
+ # Input |
47 |
|
48 |
diff --git a/dev-vcs/svn2git/svn2git-1.0.13-r1.ebuild b/dev-vcs/svn2git/svn2git-1.0.13-r1.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..dc22eca75dd |
51 |
--- /dev/null |
52 |
+++ b/dev-vcs/svn2git/svn2git-1.0.13-r1.ebuild |
53 |
@@ -0,0 +1,51 @@ |
54 |
+# Copyright 1999-2019 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+inherit desktop qmake-utils |
60 |
+[[ "${PV}" == "9999" ]] && inherit git-r3 |
61 |
+ |
62 |
+DESCRIPTION="Tool for one-time conversion from svn to git" |
63 |
+HOMEPAGE="https://github.com/svn-all-fast-export/svn2git" |
64 |
+if [[ "${PV}" == "9999" ]]; then |
65 |
+ EGIT_REPO_URI="https://github.com/svn-all-fast-export/svn2git.git" |
66 |
+else |
67 |
+ SRC_URI="https://github.com/svn-all-fast-export/svn2git/archive/${PV}.tar.gz -> ${P}.tar.gz" |
68 |
+ KEYWORDS="~amd64 ~x86" |
69 |
+fi |
70 |
+ |
71 |
+LICENSE="GPL-3" |
72 |
+SLOT="0" |
73 |
+IUSE="" |
74 |
+# KEYWORDS way up |
75 |
+ |
76 |
+DEPEND=" |
77 |
+ dev-qt/qtcore:5 |
78 |
+ dev-vcs/subversion" |
79 |
+RDEPEND="${DEPEND} |
80 |
+ dev-vcs/git" |
81 |
+ |
82 |
+DOCS=( README.md ) |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}"/${P}-src-pro.patch |
86 |
+) |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local qmake_args=( |
90 |
+ APR_INCLUDE=/usr/include/apr-1 |
91 |
+ PREFIX=/usr |
92 |
+ SVN_INCLUDE=/usr/include/subversion-1 |
93 |
+ VERSION=${PV} |
94 |
+ ) |
95 |
+ eqmake5 "${qmake_args[@]}" fast-export2.pro |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ einstalldocs |
100 |
+ insinto /usr/share/${PN}/samples |
101 |
+ doins samples/*.rules || die 'doins failed' |
102 |
+ dobin svn-all-fast-export || die 'dobin failed' |
103 |
+ dosym svn-all-fast-export /usr/bin/svn2git || die 'dosym failed' |
104 |
+} |