diff options
Diffstat (limited to 'media-video/blind')
-rw-r--r-- | media-video/blind/Manifest | 4 | ||||
-rw-r--r-- | media-video/blind/blind-1.1.ebuild | 42 | ||||
-rw-r--r-- | media-video/blind/files/blind-1.1-ldflags.patch | 11 | ||||
-rw-r--r-- | media-video/blind/metadata.xml | 7 |
4 files changed, 64 insertions, 0 deletions
diff --git a/media-video/blind/Manifest b/media-video/blind/Manifest new file mode 100644 index 000000000000..bc069c47d636 --- /dev/null +++ b/media-video/blind/Manifest @@ -0,0 +1,4 @@ +AUX blind-1.1-ldflags.patch 219 BLAKE2B eb0eb29d385d441253663315848810932ecb8b6f44dcd91193d93f23f8340574224f87f8d08b1769b7b49b92eebd787164a5eba19dde9022e1816c761d035a3e SHA512 cf66425a23cd2202fda9cc825a30b78281501972307ca8c1db942cadf40f58e1aa460fc1e649bc0d279e0d90615acd5b30ac9418cf12db57c499c046a76ca69d +DIST blind-1.1.tar.gz 47568 BLAKE2B b284e614efafb70ea41c274ddeedce66a0123c1ba6dfbba6522e0a11d6b2aa39b1059a0c9cc1c45a37f951b75c0b23580f714858bf2257a15e4f7d03ffb0b258 SHA512 620a5edc69bf736f642948e4f6ac6dda8cdbea4bdad143b09f931e62aaa57983e23ff60961d1485dcbce1ac461be12b393fe03f056ef46ca5ad2012cb03cf637 +EBUILD blind-1.1.ebuild 809 BLAKE2B a86ab8543ffee8edae09a497f1e241158bdb98bade70d05737e306c9169e52cf86deb7f8b4790d3ef7abff4e1e7b38e1ade4fc05bab3d0225c268f8d71832318 SHA512 8b0130007a0451a646bf0cb316893959001cad23de451ff975213b567e914e3f45aa29f96bfb436d7a02106298d48c0e065b019b6bd46423b938b54f1b68d5a4 +MISC metadata.xml 210 BLAKE2B bb9591af5406abbf589664053ab6e5cb38933fe6ef97c11609405392b050b26cff8e94e04e85e5798124abd46283bee67b2a74923a5041616df15aaa9cff6da9 SHA512 f7cbe57a24b67a28696f91061ad8bd61d7d4cf3d59d20c3dcc6a4921e29672d00ecf3ece70a8813399d2467ebd626f8f829300e81fc722e9aaa527e213a5fb54 diff --git a/media-video/blind/blind-1.1.ebuild b/media-video/blind/blind-1.1.ebuild new file mode 100644 index 000000000000..43fc42d195d8 --- /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..5ba62861f1c4 --- /dev/null +++ b/media-video/blind/metadata.xml @@ -0,0 +1,7 @@ +<?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> +</pkgmetadata> |