net-misc/dhcpcd: Change live ebuild to pull from git per upstream request
authorWilliam Hubbs <williamh@gentoo.org>
Fri, 24 Feb 2017 21:48:15 +0000 (15:48 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Fri, 24 Feb 2017 21:48:46 +0000 (15:48 -0600)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

net-misc/dhcpcd/dhcpcd-9999.ebuild

index f6264d2986fda0bd662be084a95c9886535c8b29..cb4cb6fc6ba81ddd4ff1a4265b6fabfe651fc96a 100644 (file)
@@ -1,11 +1,12 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=6
 
 if [[ ${PV} == "9999" ]]; then
-       FOSSIL_URI="http://roy.marples.name/projects/dhcpcd"
+       EGIT_REPO_URI="git://roy.marples.name/dhcpcd"
+       inherit git-r3
 else
        MY_P="${P/_alpha/-alpha}"
        MY_P="${MY_P/_beta/-beta}"
@@ -27,29 +28,6 @@ COMMON_DEPEND="udev? ( virtual/udev )"
 DEPEND="${COMMON_DEPEND}"
 RDEPEND="${COMMON_DEPEND}"
 
-if [[ ${PV} == "9999" ]]; then
-       DEPEND+=" dev-vcs/fossil"
-
-       src_unpack()
-       {
-               local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}
-               local repo=${distdir}/fossil/${PN}.fossil
-
-               addwrite "${distdir}"
-
-               if [[ -e "${repo}" ]]; then
-                       fossil pull "${FOSSIL_URI}" -R "${repo}" || die
-               else
-                       mkdir -p "${distdir}/fossil" || die
-                       fossil clone "${FOSSIL_URI}" "${repo}" || die
-               fi
-
-               mkdir -p "${S}" || die
-               cd "${S}" || die
-               fossil open "${repo}" || die
-       }
-fi
-
 src_configure()
 {
        local dev hooks rundir