media-video/mpglen: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sun, 18 Aug 2019 11:41:16 +0000 (13:41 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 18 Aug 2019 11:41:16 +0000 (13:41 +0200)
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
media-video/mpglen/Manifest
media-video/mpglen/mpglen-0.1.ebuild

index 298f3c8ae212fdba36579fed06aad7336d12a488..20990831fc0f169d3d1522a5e8004f7b6659af33 100644 (file)
@@ -1 +1 @@
-DIST mpglen.tar.gz 10149 BLAKE2B 479fbaad9c635fc47dce9dd8191b8c2df4c9da115a2a7c30d59e6c5e65751bc7a757c311f98f222dbaf633f25a0c7bfde0f8600e27ac8aefae5e45ae01abcac4 SHA512 10c3550e14fb0d76360f8b99e8e82f7ca951cffc14921a6ffce5a949bf10d0c1d7d2dcafaf61c85123fecf5432139332a10f0f54e9c04ef99584578294d812a2
+DIST mpglen-0.1.tar.gz 10149 BLAKE2B 479fbaad9c635fc47dce9dd8191b8c2df4c9da115a2a7c30d59e6c5e65751bc7a757c311f98f222dbaf633f25a0c7bfde0f8600e27ac8aefae5e45ae01abcac4 SHA512 10c3550e14fb0d76360f8b99e8e82f7ca951cffc14921a6ffce5a949bf10d0c1d7d2dcafaf61c85123fecf5432139332a10f0f54e9c04ef99584578294d812a2
index 0da5b94f898af70b6592795db95486f0b2775218..d366cc724bfaa388735b52862e300107001e51f1 100644 (file)
@@ -1,34 +1,37 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
 inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="A program to scan through a MPEG file and count the number of GOPs and frames"
 HOMEPAGE="http://www.iamnota.net/mpglen/"
-SRC_URI="http://www.iamnota.net/mpglen/${PN}.tar.gz"
+SRC_URI="mirror://gentoo/${PN}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
 
-S=${WORKDIR}/${PN}
+S="${WORKDIR}/${PN}"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-       echo 'all: mpglen' > Makefile
+src_prepare() {
+       default
+
+       # awful Makefile, just rely on implicit rules
+       rm Makefile || die
+}
+
+src_configure() {
        append-lfs-flags
+       tc-export CC
 }
 
 src_compile() {
-       tc-export CC
-       emake || die "emake failed"
+       emake mpglen
 }
 
 src_install () {
-       dobin ${PN} || die
+       dobin ${PN}
        dodoc AUTHORS Changelog README
 }