summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-01-11 19:37:44 +0100
committerJeroen Roovers <jer@gentoo.org>2018-01-11 19:39:53 +0100
commit5a08101eed97fee68826807b2b13b8a5ec7318bf (patch)
treeb9151f17500d75c8d3c58f975077fb363b4b7a82
parentmedia-gfx/blind: Initial commit. (diff)
downloadgentoo-5a08101eed97fee68826807b2b13b8a5ec7318bf.tar.gz
gentoo-5a08101eed97fee68826807b2b13b8a5ec7318bf.tar.bz2
gentoo-5a08101eed97fee68826807b2b13b8a5ec7318bf.zip
media-video/blind: Move to media-video/.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
-rw-r--r--media-video/blind/Manifest1
-rw-r--r--media-video/blind/blind-1.1.ebuild42
-rw-r--r--media-video/blind/files/blind-1.1-ldflags.patch11
-rw-r--r--media-video/blind/metadata.xml9
4 files changed, 63 insertions, 0 deletions
diff --git a/media-video/blind/Manifest b/media-video/blind/Manifest
new file mode 100644
index 000000000000..b39a12954c58
--- /dev/null
+++ b/media-video/blind/Manifest
@@ -0,0 +1 @@
+DIST blind-1.1.tar.gz 47568 BLAKE2B b284e614efafb70ea41c274ddeedce66a0123c1ba6dfbba6522e0a11d6b2aa39b1059a0c9cc1c45a37f951b75c0b23580f714858bf2257a15e4f7d03ffb0b258 SHA512 620a5edc69bf736f642948e4f6ac6dda8cdbea4bdad143b09f931e62aaa57983e23ff60961d1485dcbce1ac461be12b393fe03f056ef46ca5ad2012cb03cf637
diff --git a/media-video/blind/blind-1.1.ebuild b/media-video/blind/blind-1.1.ebuild
new file mode 100644
index 000000000000..350b74acd248
--- /dev/null
+++ b/media-video/blind/blind-1.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="a collection of command line video editing utilities"
+HOMEPAGE="https://tools.suckless.org/blind/"
+SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+"
+DEPEND="
+ ${RDEPEND}
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1-ldflags.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^CC/d' \
+ -e 's|/usr/local|/usr|g' \
+ -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \
+ -e '/^LDFLAGS.*/ { s:-s::g; s:=:+=:g; }' \
+ -e 's|{|(|g;s|}|)|g' \
+ config.mk || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install MANPREFIX=/usr/share/man
+}
diff --git a/media-video/blind/files/blind-1.1-ldflags.patch b/media-video/blind/files/blind-1.1-ldflags.patch
new file mode 100644
index 000000000000..6e247b10f13f
--- /dev/null
+++ b/media-video/blind/files/blind-1.1-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -80,7 +80,7 @@
+ all: $(BIN)
+
+ %: %.o util.o stream.o
+- $(CC) $(LDFLAGS) -o $@ $^
++ $(CC) -o $@ $^ $(LDFLAGS)
+
+ %.o: src/%.c src/*.h src/*/*.h
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
diff --git a/media-video/blind/metadata.xml b/media-video/blind/metadata.xml
new file mode 100644
index 000000000000..27071a896308
--- /dev/null
+++ b/media-video/blind/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>jer@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>