app-admin/cronolog: expand patches glob
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 25 Feb 2017 09:18:56 +0000 (09:18 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 25 Feb 2017 09:31:09 +0000 (09:31 +0000)
Inline all available patches explicitly
to make ebuild stable against addition/removal
of patches into a directory.

While at it drop src_install() as it's the same
as EAPI=6 src_install().

app-admin/cronolog/cronolog-1.6.2-r5.ebuild

index 3a00382de205e203bc4f08ca7ae063fafa998c0d..690148fc1adfe58b92546c35fd1d369f661ff732 100644 (file)
@@ -14,15 +14,21 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~ppc ~x86"
 
+PATCHES=(
+       "${FILESDIR}"/${PV}-patches/${PN}-define-strptime.patch.txt
+       "${FILESDIR}"/${PV}-patches/${PN}-doc.patch.txt
+       "${FILESDIR}"/${PV}-patches/${PN}-getopt-long.patch.txt
+       "${FILESDIR}"/${PV}-patches/${PN}-large-file-patch.txt
+       "${FILESDIR}"/${PV}-patches/${PN}-missing-symlink-patch.txt
+       "${FILESDIR}"/${PV}-patches/${PN}-setugid-patch.txt
+       "${FILESDIR}"/${PV}-patches/${PN}-sigusr1-patch.txt
+       "${FILESDIR}"/${PV}-patches/${PN}-strftime-patch.txt
+       "${FILESDIR}"/${P}-umask.patch
+)
+
 DOCS=( AUTHORS ChangeLog INSTALL NEWS README TODO )
 
 src_prepare() {
        default
-       epatch "${FILESDIR}/${PV}-patches"/*.txt "${FILESDIR}/${P}-umask.patch"
        eautoreconf
 }
-
-src_install() {
-       emake DESTDIR="${D}" install
-       einstalldocs
-}