media-gfx/blind: Initial commit.
authorJeroen Roovers <jer@gentoo.org>
Thu, 11 Jan 2018 18:36:12 +0000 (19:36 +0100)
committerJeroen Roovers <jer@gentoo.org>
Thu, 11 Jan 2018 18:39:50 +0000 (19:39 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

media-gfx/blind/Manifest [new file with mode: 0644]
media-gfx/blind/blind-1.1.ebuild [new file with mode: 0644]
media-gfx/blind/files/blind-1.1-ldflags.patch [new file with mode: 0644]
media-gfx/blind/metadata.xml [new file with mode: 0644]

diff --git a/media-gfx/blind/Manifest b/media-gfx/blind/Manifest
new file mode 100644 (file)
index 0000000..b39a129
--- /dev/null
@@ -0,0 +1 @@
+DIST blind-1.1.tar.gz 47568 BLAKE2B b284e614efafb70ea41c274ddeedce66a0123c1ba6dfbba6522e0a11d6b2aa39b1059a0c9cc1c45a37f951b75c0b23580f714858bf2257a15e4f7d03ffb0b258 SHA512 620a5edc69bf736f642948e4f6ac6dda8cdbea4bdad143b09f931e62aaa57983e23ff60961d1485dcbce1ac461be12b393fe03f056ef46ca5ad2012cb03cf637
diff --git a/media-gfx/blind/blind-1.1.ebuild b/media-gfx/blind/blind-1.1.ebuild
new file mode 100644 (file)
index 0000000..350b74a
--- /dev/null
@@ -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-gfx/blind/files/blind-1.1-ldflags.patch b/media-gfx/blind/files/blind-1.1-ldflags.patch
new file mode 100644 (file)
index 0000000..6e247b1
--- /dev/null
@@ -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-gfx/blind/metadata.xml b/media-gfx/blind/metadata.xml
new file mode 100644 (file)
index 0000000..27071a8
--- /dev/null
@@ -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>