summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-gfx/farbfeld/Manifest1
-rw-r--r--media-gfx/farbfeld/farbfeld-4.ebuild40
-rw-r--r--media-gfx/farbfeld/farbfeld-9999.ebuild3
3 files changed, 42 insertions, 2 deletions
diff --git a/media-gfx/farbfeld/Manifest b/media-gfx/farbfeld/Manifest
index 036d0ba82b7..64b4a1528be 100644
--- a/media-gfx/farbfeld/Manifest
+++ b/media-gfx/farbfeld/Manifest
@@ -1,2 +1,3 @@
DIST farbfeld-2.tar.gz 6646 BLAKE2B 38a22640699c19fd8580b9347988d471d434c75fc839395dcd163ef6a7a3d5610300dc5167f77eeb26e91d1338562812a4faf5b122fd72b5a81eb1a1ada44776 SHA512 04471f0d6092433083b1441c17fb80db27fcedea6a12ddab3b08eaf9731da06f48560cf49124b56e1e27d7de2b69109b0ce38513ee90c735ac966dc2132e000f
DIST farbfeld-3.tar.gz 10169 BLAKE2B 8d548cb33950d1b8f94f79ea5e8dbff445f2378f1c75cb4945f8f48ae9fec8075d38bc83a6bc99184182f3b1920b15454853c0a899de2e0756f2614bc3f684aa SHA512 4f1e44282810bd2724f78857bcde401b82945375c5472b31e39250d660efffd425e0a2da5aecf0133ad3d414c31214d073d00f519bc83960b5bbfd53df3b1c49
+DIST farbfeld-4.tar.gz 10340 BLAKE2B 0ef13baabe70f0be485746602a77eb4002c8611d1ccb0468de512b687eb9a5c48dafb81c12274e29377697bc70d3586f4a71b47e82ffd3f6238398741565c1b9 SHA512 5139dd81cf1e3cb7a32108c0acad0e4ae0de13e86b997f1a759aa1b1f7be6c1ad2a93a69af7126e3512a7c9b1669a2a301ff60171b098b3450f1da0594e3b6ac
diff --git a/media-gfx/farbfeld/farbfeld-4.ebuild b/media-gfx/farbfeld/farbfeld-4.ebuild
new file mode 100644
index 00000000000..d41a6ee63dd
--- /dev/null
+++ b/media-gfx/farbfeld/farbfeld-4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="farbfeld simple image format tools"
+HOMEPAGE="https://tools.suckless.org/farbfeld/"
+SRC_URI="https://dl.suckless.org/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ media-libs/libjpeg-turbo
+ media-libs/libpng:*
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+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 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|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/farbfeld/farbfeld-9999.ebuild b/media-gfx/farbfeld/farbfeld-9999.ebuild
index 7ba44661350..7633fe053ab 100644
--- a/media-gfx/farbfeld/farbfeld-9999.ebuild
+++ b/media-gfx/farbfeld/farbfeld-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -28,7 +28,6 @@ src_prepare() {
-e 's|/usr/local|/usr|g' \
-e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \
-e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \
- -e 's|{|(|g;s|}|)|g' \
config.mk || die
}