sys-apps/gentoo-systemd-integration: Revamp the live ebuild
authorMike Gilbert <floppym@gentoo.org>
Sat, 5 Mar 2016 19:06:39 +0000 (14:06 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sat, 5 Mar 2016 19:15:32 +0000 (14:15 -0500)
Move to EAPI 6.

Package-Manager: portage-2.2.27_p64

sys-apps/gentoo-systemd-integration/gentoo-systemd-integration-9999.ebuild

index 8aba232815eaf7ca1d698efb4b65068107d8c3b4..93648ddc53362687ab92e0a0dd2719be051df0ee 100644 (file)
@@ -1,44 +1,45 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-#if LIVE
-AUTOTOOLS_AUTORECONF=1
-EGIT_REPO_URI="https://bitbucket.org/mgorny/${PN}.git"
-inherit git-2
-#endif
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gentoo-systemd-integration.git"
+       inherit autotools git-r3
+else
+       SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.gz"
+       KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+fi
 
-inherit autotools-utils systemd
+inherit systemd
 
 DESCRIPTION="systemd integration files for Gentoo"
-HOMEPAGE="https://bitbucket.org/mgorny/gentoo-systemd-integration"
-SRC_URI="https://www.bitbucket.org/mgorny/${PN}/downloads/${P}.tar.bz2"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Systemd"
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
 IUSE=""
 
 RDEPEND=">=sys-apps/systemd-207
        !sys-fs/eudev
        !sys-fs/udev"
 
-#if LIVE
-SRC_URI=
-KEYWORDS=
+if [[ ${PV} == 9999 ]]; then
+       DEPEND+=" sys-devel/systemd-m4"
+fi
 
-DEPEND="${DEPEND}
-       sys-devel/systemd-m4"
-#endif
+src_prepare() {
+       default
+       [[ ${PV} != 9999 ]] || eautoreconf
+}
 
 src_configure() {
        local myeconfargs=(
-               "$(systemd_with_unitdir)"
+               --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
                # TODO: solve it better in the eclass
                --with-systemdsystemgeneratordir="$(systemd_get_utildir)"/system-generators
        )
 
-       autotools-utils_src_configure
+       econf "${myeconfargs[@]}"
 }