1 |
commit: 4471cc36a86e40e7d2607a8de1cf69a34f913c7f |
2 |
Author: Matthias Coppens <coppens.matthias.abc <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Aug 9 15:08:53 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 19 18:47:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4471cc36 |
7 |
|
8 |
app-misc/dateutils: Added live ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
11 |
Signed-off-by: Matthias Coppens <coppens.matthias.abc <AT> gmail.com> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
app-misc/dateutils/dateutils-0.4.6.ebuild | 31 ++++++++++++++++---------- |
15 |
app-misc/dateutils/dateutils-0.4.7.ebuild | 30 +++++++++++++++++--------- |
16 |
app-misc/dateutils/dateutils-9999.ebuild | 36 +++++++++++++++++++++++++++++++ |
17 |
app-misc/dateutils/metadata.xml | 2 +- |
18 |
4 files changed, 77 insertions(+), 22 deletions(-) |
19 |
|
20 |
diff --git a/app-misc/dateutils/dateutils-0.4.6.ebuild b/app-misc/dateutils/dateutils-0.4.6.ebuild |
21 |
index 7b12131bfec..c785ee95ac5 100644 |
22 |
--- a/app-misc/dateutils/dateutils-0.4.6.ebuild |
23 |
+++ b/app-misc/dateutils/dateutils-0.4.6.ebuild |
24 |
@@ -4,26 +4,35 @@ |
25 |
EAPI=7 |
26 |
|
27 |
DESCRIPTION="command line date and time utilities" |
28 |
-HOMEPAGE="https://www.fresse.org/dateutils/" |
29 |
-SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz" |
30 |
+HOMEPAGE="https://www.fresse.org/dateutils/ https://github.com/hroptatyr/dateutils" |
31 |
+ |
32 |
+case "${PV}" in |
33 |
+ 9999) |
34 |
+ inherit autotools git-r3 |
35 |
+ EGIT_REPO_URI="https://github.com/hroptatyr/dateutils.git" |
36 |
+ ;; |
37 |
+ *) |
38 |
+ SRC_URI="https://github.com/hroptatyr/dateutils/releases/download/v${PV}/${P}.tar.xz" |
39 |
+ KEYWORDS="~amd64 ~x86" |
40 |
+esac |
41 |
|
42 |
LICENSE="BSD" |
43 |
SLOT="0" |
44 |
-KEYWORDS="~amd64 ~x86" |
45 |
|
46 |
-DEPEND="app-arch/xz-utils |
47 |
- sys-libs/timezone-data" |
48 |
+BDEPEND="app-arch/xz-utils" |
49 |
+DEPEND="sys-libs/timezone-data" |
50 |
|
51 |
# bug 429810 |
52 |
-RDEPEND="!sys-fabric/dapl" |
53 |
+RDEPEND="${DEPEND} |
54 |
+ !sys-fabric/dapl" |
55 |
|
56 |
PATCHES=( "${FILESDIR}"/${P}-unportable-sys-sysctl_h.patch ) |
57 |
|
58 |
-src_compile() { |
59 |
- emake CFLAGS="${CFLAGS}" |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ [[ "${PV}" = 9999 ]] && eautoreconf |
63 |
} |
64 |
|
65 |
-src_test() { |
66 |
- # parallel tests failure |
67 |
- emake CFLAGS="${CFLAGS}" -j1 check |
68 |
+src_configure() { |
69 |
+ econf CFLAGS="${CFLAGS}" |
70 |
} |
71 |
|
72 |
diff --git a/app-misc/dateutils/dateutils-0.4.7.ebuild b/app-misc/dateutils/dateutils-0.4.7.ebuild |
73 |
index 968fb4c912f..7d96bcf272a 100644 |
74 |
--- a/app-misc/dateutils/dateutils-0.4.7.ebuild |
75 |
+++ b/app-misc/dateutils/dateutils-0.4.7.ebuild |
76 |
@@ -4,23 +4,33 @@ |
77 |
EAPI=7 |
78 |
|
79 |
DESCRIPTION="command line date and time utilities" |
80 |
-HOMEPAGE="https://www.fresse.org/dateutils/" |
81 |
-SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz" |
82 |
+HOMEPAGE="https://www.fresse.org/dateutils/ https://github.com/hroptatyr/dateutils" |
83 |
+ |
84 |
+case "${PV}" in |
85 |
+ 9999) |
86 |
+ inherit autotools git-r3 |
87 |
+ EGIT_REPO_URI="https://github.com/hroptatyr/dateutils.git" |
88 |
+ ;; |
89 |
+ *) |
90 |
+ SRC_URI="https://github.com/hroptatyr/dateutils/releases/download/v${PV}/${P}.tar.xz" |
91 |
+ KEYWORDS="~amd64 ~x86" |
92 |
+esac |
93 |
|
94 |
LICENSE="BSD" |
95 |
SLOT="0" |
96 |
-KEYWORDS="~amd64 ~x86" |
97 |
|
98 |
-DEPEND="app-arch/xz-utils |
99 |
- sys-libs/timezone-data" |
100 |
+BDEPEND="app-arch/xz-utils" |
101 |
+DEPEND="sys-libs/timezone-data" |
102 |
|
103 |
# bug 429810 |
104 |
-RDEPEND="!sys-fabric/dapl" |
105 |
+RDEPEND="${DEPEND} |
106 |
+ !sys-fabric/dapl" |
107 |
|
108 |
-src_compile() { |
109 |
- emake CFLAGS="${CFLAGS}" |
110 |
+src_prepare() { |
111 |
+ default |
112 |
+ [[ "${PV}" = 9999 ]] && eautoreconf |
113 |
} |
114 |
|
115 |
-src_test() { |
116 |
- emake CFLAGS="${CFLAGS}" check |
117 |
+src_configure() { |
118 |
+ econf CFLAGS="${CFLAGS}" |
119 |
} |
120 |
|
121 |
diff --git a/app-misc/dateutils/dateutils-9999.ebuild b/app-misc/dateutils/dateutils-9999.ebuild |
122 |
new file mode 100644 |
123 |
index 00000000000..7d96bcf272a |
124 |
--- /dev/null |
125 |
+++ b/app-misc/dateutils/dateutils-9999.ebuild |
126 |
@@ -0,0 +1,36 @@ |
127 |
+# Copyright 1999-2020 Gentoo Authors |
128 |
+# Distributed under the terms of the GNU General Public License v2 |
129 |
+ |
130 |
+EAPI=7 |
131 |
+ |
132 |
+DESCRIPTION="command line date and time utilities" |
133 |
+HOMEPAGE="https://www.fresse.org/dateutils/ https://github.com/hroptatyr/dateutils" |
134 |
+ |
135 |
+case "${PV}" in |
136 |
+ 9999) |
137 |
+ inherit autotools git-r3 |
138 |
+ EGIT_REPO_URI="https://github.com/hroptatyr/dateutils.git" |
139 |
+ ;; |
140 |
+ *) |
141 |
+ SRC_URI="https://github.com/hroptatyr/dateutils/releases/download/v${PV}/${P}.tar.xz" |
142 |
+ KEYWORDS="~amd64 ~x86" |
143 |
+esac |
144 |
+ |
145 |
+LICENSE="BSD" |
146 |
+SLOT="0" |
147 |
+ |
148 |
+BDEPEND="app-arch/xz-utils" |
149 |
+DEPEND="sys-libs/timezone-data" |
150 |
+ |
151 |
+# bug 429810 |
152 |
+RDEPEND="${DEPEND} |
153 |
+ !sys-fabric/dapl" |
154 |
+ |
155 |
+src_prepare() { |
156 |
+ default |
157 |
+ [[ "${PV}" = 9999 ]] && eautoreconf |
158 |
+} |
159 |
+ |
160 |
+src_configure() { |
161 |
+ econf CFLAGS="${CFLAGS}" |
162 |
+} |
163 |
|
164 |
diff --git a/app-misc/dateutils/metadata.xml b/app-misc/dateutils/metadata.xml |
165 |
index 361cab5915e..c0305048faa 100644 |
166 |
--- a/app-misc/dateutils/metadata.xml |
167 |
+++ b/app-misc/dateutils/metadata.xml |
168 |
@@ -3,7 +3,7 @@ |
169 |
<pkgmetadata> |
170 |
<maintainer type="person"> |
171 |
<email>coppens.matthias.abc@×××××.com</email> |
172 |
- <description>Matthias Coppens</description> |
173 |
+ <name>Matthias Coppens</name> |
174 |
</maintainer> |
175 |
<maintainer type="project"> |
176 |
<email>proxy-maint@g.o</email> |