summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Coppens <coppens.matthias.abc@gmail.com>2020-08-09 17:08:53 +0200
committerSam James <sam@gentoo.org>2020-08-19 18:47:54 +0000
commit4471cc36a86e40e7d2607a8de1cf69a34f913c7f (patch)
treeb75330ba28b4dc8f56409ffc2045c34b8df53bbb
parentapp-misc/dateutils: Version bump (0.4.7) + maintainership (diff)
downloadgentoo-4471cc36a86e40e7d2607a8de1cf69a34f913c7f.tar.gz
gentoo-4471cc36a86e40e7d2607a8de1cf69a34f913c7f.tar.bz2
gentoo-4471cc36a86e40e7d2607a8de1cf69a34f913c7f.zip
app-misc/dateutils: Added live ebuild
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Matthias Coppens <coppens.matthias.abc@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--app-misc/dateutils/dateutils-0.4.6.ebuild31
-rw-r--r--app-misc/dateutils/dateutils-0.4.7.ebuild30
-rw-r--r--app-misc/dateutils/dateutils-9999.ebuild36
-rw-r--r--app-misc/dateutils/metadata.xml2
4 files changed, 77 insertions, 22 deletions
diff --git a/app-misc/dateutils/dateutils-0.4.6.ebuild b/app-misc/dateutils/dateutils-0.4.6.ebuild
index 7b12131bfecd..c785ee95ac5f 100644
--- a/app-misc/dateutils/dateutils-0.4.6.ebuild
+++ b/app-misc/dateutils/dateutils-0.4.6.ebuild
@@ -4,26 +4,35 @@
EAPI=7
DESCRIPTION="command line date and time utilities"
-HOMEPAGE="https://www.fresse.org/dateutils/"
-SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
+HOMEPAGE="https://www.fresse.org/dateutils/ https://github.com/hroptatyr/dateutils"
+
+case "${PV}" in
+ 9999)
+ inherit autotools git-r3
+ EGIT_REPO_URI="https://github.com/hroptatyr/dateutils.git"
+ ;;
+ *)
+ SRC_URI="https://github.com/hroptatyr/dateutils/releases/download/v${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+esac
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
-DEPEND="app-arch/xz-utils
- sys-libs/timezone-data"
+BDEPEND="app-arch/xz-utils"
+DEPEND="sys-libs/timezone-data"
# bug 429810
-RDEPEND="!sys-fabric/dapl"
+RDEPEND="${DEPEND}
+ !sys-fabric/dapl"
PATCHES=( "${FILESDIR}"/${P}-unportable-sys-sysctl_h.patch )
-src_compile() {
- emake CFLAGS="${CFLAGS}"
+src_prepare() {
+ default
+ [[ "${PV}" = 9999 ]] && eautoreconf
}
-src_test() {
- # parallel tests failure
- emake CFLAGS="${CFLAGS}" -j1 check
+src_configure() {
+ econf CFLAGS="${CFLAGS}"
}
diff --git a/app-misc/dateutils/dateutils-0.4.7.ebuild b/app-misc/dateutils/dateutils-0.4.7.ebuild
index 968fb4c912f1..7d96bcf272a9 100644
--- a/app-misc/dateutils/dateutils-0.4.7.ebuild
+++ b/app-misc/dateutils/dateutils-0.4.7.ebuild
@@ -4,23 +4,33 @@
EAPI=7
DESCRIPTION="command line date and time utilities"
-HOMEPAGE="https://www.fresse.org/dateutils/"
-SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
+HOMEPAGE="https://www.fresse.org/dateutils/ https://github.com/hroptatyr/dateutils"
+
+case "${PV}" in
+ 9999)
+ inherit autotools git-r3
+ EGIT_REPO_URI="https://github.com/hroptatyr/dateutils.git"
+ ;;
+ *)
+ SRC_URI="https://github.com/hroptatyr/dateutils/releases/download/v${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+esac
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
-DEPEND="app-arch/xz-utils
- sys-libs/timezone-data"
+BDEPEND="app-arch/xz-utils"
+DEPEND="sys-libs/timezone-data"
# bug 429810
-RDEPEND="!sys-fabric/dapl"
+RDEPEND="${DEPEND}
+ !sys-fabric/dapl"
-src_compile() {
- emake CFLAGS="${CFLAGS}"
+src_prepare() {
+ default
+ [[ "${PV}" = 9999 ]] && eautoreconf
}
-src_test() {
- emake CFLAGS="${CFLAGS}" check
+src_configure() {
+ econf CFLAGS="${CFLAGS}"
}
diff --git a/app-misc/dateutils/dateutils-9999.ebuild b/app-misc/dateutils/dateutils-9999.ebuild
new file mode 100644
index 000000000000..7d96bcf272a9
--- /dev/null
+++ b/app-misc/dateutils/dateutils-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="command line date and time utilities"
+HOMEPAGE="https://www.fresse.org/dateutils/ https://github.com/hroptatyr/dateutils"
+
+case "${PV}" in
+ 9999)
+ inherit autotools git-r3
+ EGIT_REPO_URI="https://github.com/hroptatyr/dateutils.git"
+ ;;
+ *)
+ SRC_URI="https://github.com/hroptatyr/dateutils/releases/download/v${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+esac
+
+LICENSE="BSD"
+SLOT="0"
+
+BDEPEND="app-arch/xz-utils"
+DEPEND="sys-libs/timezone-data"
+
+# bug 429810
+RDEPEND="${DEPEND}
+ !sys-fabric/dapl"
+
+src_prepare() {
+ default
+ [[ "${PV}" = 9999 ]] && eautoreconf
+}
+
+src_configure() {
+ econf CFLAGS="${CFLAGS}"
+}
diff --git a/app-misc/dateutils/metadata.xml b/app-misc/dateutils/metadata.xml
index 361cab5915e8..c0305048faa1 100644
--- a/app-misc/dateutils/metadata.xml
+++ b/app-misc/dateutils/metadata.xml
@@ -3,7 +3,7 @@
<pkgmetadata>
<maintainer type="person">
<email>coppens.matthias.abc@gmail.com</email>
- <description>Matthias Coppens</description>
+ <name>Matthias Coppens</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>