Skip to content

Commit

Permalink
app-misc/dateutils: Added live ebuild
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Matthias Coppens <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
MatthiasCoppens authored and thesamesam committed Aug 19, 2020
1 parent dc7485a commit 4471cc3
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 22 deletions.
31 changes: 20 additions & 11 deletions app-misc/dateutils/dateutils-0.4.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
30 changes: 20 additions & 10 deletions app-misc/dateutils/dateutils-0.4.7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
36 changes: 36 additions & 0 deletions app-misc/dateutils/dateutils-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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}"
}
2 changes: 1 addition & 1 deletion app-misc/dateutils/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<description>Matthias Coppens</description>
<name>Matthias Coppens</name>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
Expand Down

0 comments on commit 4471cc3

Please sign in to comment.