summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-08-18 13:41:16 +0200
committerDavid Seifert <soap@gentoo.org>2019-08-18 13:41:16 +0200
commit5e7d1d670b89859dc8cb8f6446df7b072a646384 (patch)
treec82e36233cc53edf5e2f5ebc7b1e9e8767051293 /media-video/mpglen
parentmedia-sound/oggtst: Port to EAPI 7 (diff)
downloadgentoo-5e7d1d670b89859dc8cb8f6446df7b072a646384.tar.gz
gentoo-5e7d1d670b89859dc8cb8f6446df7b072a646384.tar.bz2
gentoo-5e7d1d670b89859dc8cb8f6446df7b072a646384.zip
media-video/mpglen: Port to EAPI 7
Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-video/mpglen')
-rw-r--r--media-video/mpglen/Manifest2
-rw-r--r--media-video/mpglen/mpglen-0.1.ebuild27
2 files changed, 16 insertions, 13 deletions
diff --git a/media-video/mpglen/Manifest b/media-video/mpglen/Manifest
index 298f3c8ae212..20990831fc0f 100644
--- a/media-video/mpglen/Manifest
+++ b/media-video/mpglen/Manifest
@@ -1 +1 @@
-DIST mpglen.tar.gz 10149 BLAKE2B 479fbaad9c635fc47dce9dd8191b8c2df4c9da115a2a7c30d59e6c5e65751bc7a757c311f98f222dbaf633f25a0c7bfde0f8600e27ac8aefae5e45ae01abcac4 SHA512 10c3550e14fb0d76360f8b99e8e82f7ca951cffc14921a6ffce5a949bf10d0c1d7d2dcafaf61c85123fecf5432139332a10f0f54e9c04ef99584578294d812a2
+DIST mpglen-0.1.tar.gz 10149 BLAKE2B 479fbaad9c635fc47dce9dd8191b8c2df4c9da115a2a7c30d59e6c5e65751bc7a757c311f98f222dbaf633f25a0c7bfde0f8600e27ac8aefae5e45ae01abcac4 SHA512 10c3550e14fb0d76360f8b99e8e82f7ca951cffc14921a6ffce5a949bf10d0c1d7d2dcafaf61c85123fecf5432139332a10f0f54e9c04ef99584578294d812a2
diff --git a/media-video/mpglen/mpglen-0.1.ebuild b/media-video/mpglen/mpglen-0.1.ebuild
index 0da5b94f898a..d366cc724bfa 100644
--- a/media-video/mpglen/mpglen-0.1.ebuild
+++ b/media-video/mpglen/mpglen-0.1.ebuild
@@ -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
}