diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/fbida |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/fbida')
-rw-r--r-- | media-gfx/fbida/Manifest | 16 | ||||
-rw-r--r-- | media-gfx/fbida/fbida-2.12.ebuild | 125 | ||||
-rw-r--r-- | media-gfx/fbida/fbida-2.13-r1.ebuild | 121 | ||||
-rw-r--r-- | media-gfx/fbida/fbida-2.14.ebuild | 120 | ||||
-rw-r--r-- | media-gfx/fbida/fbida-9999.ebuild | 134 | ||||
-rw-r--r-- | media-gfx/fbida/files/fbida-2.10-fprintf-format.patch | 11 | ||||
-rw-r--r-- | media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch | 17 | ||||
-rw-r--r-- | media-gfx/fbida/files/fbida-2.13-Autoconf.patch | 11 | ||||
-rw-r--r-- | media-gfx/fbida/files/fbida-2.14-Autoconf.patch | 11 | ||||
-rw-r--r-- | media-gfx/fbida/files/ida-desktop.patch | 17 | ||||
-rw-r--r-- | media-gfx/fbida/metadata.xml | 13 |
11 files changed, 596 insertions, 0 deletions
diff --git a/media-gfx/fbida/Manifest b/media-gfx/fbida/Manifest new file mode 100644 index 000000000000..5d89222a8ea4 --- /dev/null +++ b/media-gfx/fbida/Manifest @@ -0,0 +1,16 @@ +AUX fbida-2.10-fprintf-format.patch 172 SHA256 9c44658c13122f967c06906d33abc9db7ec8cc67841773fc35269c9d6d940ac1 SHA512 a340550e87b9532b9a5cf2240bb965879696760c37031f8bfc7d251891e81b10391408626c45ef636dc67c2ccb6746195837587a4ff8e6598262a6a1f920eddd WHIRLPOOL f00e37d77a0365e2c04431d7341784f2e200d0d204cc5761a67cff2c0fde5727c52975114498304cc00904d8cb900313b9a55332f6efb802259558734fe9aca6 +AUX fbida-2.10-giflib-4.2.patch 542 SHA256 1393afb3e73d132828a0b431a1e7ed93244250c265d54ee8d59841c6a26ec707 SHA512 7610721d965c3640c4524311626ba099501cac1aef6cea62d32158e8a7720cc23bdb0c83422795676de021f88a592c3d2f7d4d26d810dc06d959f7c85e91019e WHIRLPOOL c2e58369c704f6c92d0285ecea5bba81f59e73e9c4d972bc89a2b604ed403ad94dacf7e836082658641ea21ecc13c1e9b1adb6104d1e2cc4fa1f9ed487fb99fe +AUX fbida-2.13-Autoconf.patch 239 SHA256 aa6c07e7901041a9b5e4e132fd48099d1607e93853523b45a373682cc82cb1be SHA512 b87ed3f79fe9efea02fc97d6cde0e6d67c2e6baf93ab3a19564090f2806cbfa1b67610a16a4151ba8df31d570f79f8f964dd608ce4fda95e7f7cbcc562902847 WHIRLPOOL 5142274968b19da972c5dac3fb64ad6f0fc1dd0357b6b5c741fd9f02f52414d4f95a9646b3d2de05005e9f43c4b61884abf0a4ad3911c3d46bd2ee8515de401e +AUX fbida-2.14-Autoconf.patch 244 SHA256 ab53b5f9a89b864d67327c39ee133f2357cf832a9d737905c093a2daece80ea3 SHA512 cb31757e3ca3eabbff4c4ecb27581b39b8fef386412b4f26558a070b6b08891b09a31a06861d965009f5158e03ab227b86873f4b64316cf63bc7b51ce6074221 WHIRLPOOL d36ce1ee6ec2b647cc2da401e3ee646f935703b1daec57b3cec0dc0d6ef5fc7fadb96192b681d11f8289699b9b37108f49cb97340de8575e523dca5e15ed670e +AUX ida-desktop.patch 384 SHA256 68b73ebe6ebc04dd3c205ee328c61c9d0b523c9ba87dda9301f82eab306b9e57 SHA512 0e14a3b848774d1538e309a9c8a8f0445a870db21723d11d0c39d86760ccb9c6f9a5f08ec75016875b2867c2d2075b59aad0fa810621f2c2afcccd14fef26737 WHIRLPOOL 5ff72a36831f60b2965964e53b105121c0de042e18abfc19d348c35496dada17c466d2e0d1cbeb778238a62380a4a2d7e3998e15565accf3b69dc19f80aa0e32 +DIST fbida-2.12.tar.gz 294842 SHA256 d33193105cce77057c919761728cee9bbe8ec8ec4f12a770a600cab33611822f SHA512 383eb766a98137f7252cd981d0e8c9a7382223705a43332f50990ea26763d4882ed1585e72fe9199528502d7f8f9de2e90718dbce71ee08d2181c74aa3e7e515 WHIRLPOOL 7ea067497eee03623fe8f07afbb77c354973187edd09f40b94d73d1b2d7c823db846c277005473c169cd1ad923e378d22d3c065f3522667e544d25917cd6495a +DIST fbida-2.13.tar.gz 296020 SHA256 a887195dcd189055ee9b787eb03c8b7954df3aec540a1f90d8e92f873126db07 SHA512 a316776f381fac6ec6a5d085ece7a42e8e34b2c0f5ae1cc58ad5b5736dc83d8f2e7776779716abfc0ae9c51baacdf911df6a0be610d2b7b2e3ce6d0c81e1fdc3 WHIRLPOOL d94273ff9b631902d38fc1d65155fe18f50bca5055659bdc8bd945e68b913d1e65da4aa5b13358f9f4f662cee7199c92b244abdc9f89c127a74fce8e5beefabc +DIST fbida-2.14.tar.gz 296826 SHA256 95b7c01556cb6ef9819f358b314ddfeb8a4cbe862b521a3ed62f03d163154438 SHA512 8f3596ad8a22497880ac698d3b324e038ac5ccae7481fe4a902fc6e8bf43ba1bb3a96af8c7a3347bea86c1988f35674e2647901ac256bd4e8261d467a6a343ec WHIRLPOOL b545390ac42122d6cabeaef2d365c0519e695c715bf50f8ade64a53a5655f2845ba8931dc64462fe318bb9df5e0d0e6bf93f173f63d92044b90ffe265c910ab1 +DIST ida.png.bz2 11928 SHA256 ce90c13f8da8d2ced4cf0e55d2f960bc236355f6e5dd60ea6c56fbe51e6cabae SHA512 cf3c1bc8d25fe75f10c0a0414b5c082348df2fa94864ec4537c36e0b357cf35b68e2eca205bbf48578a41c27317701aee621c6dd176e0bf3857c52f895d6bfd3 WHIRLPOOL 1b5e7835aa8a555a231ca58da8e249974639b29b1e15586c2d2d5a33e96908df1a3782fbe61d0c51dc888b7304c9f7541a96af4ca2b956b393909feb534ab5be +EBUILD fbida-2.12.ebuild 2428 SHA256 b1ef86964eac33129a85297edbf64b5bfe5ef7954f2adfbfc9eff2bc25de8481 SHA512 b847ad915d41fe2ab95fb487e70419100e4fcd9ae0287449fdcc6f93f5f42165942919746fe856520a79ff9c1b66421530a02f55c8a9e7695a859a6579c60741 WHIRLPOOL c750a7183e6780c830d5ae578cb1bd66ae335379741456470b4e7f751a4e4d254983fb10c694d319e0a60f4e06bf511701543f3f4bb8edb4df7cf36b6de28f35 +EBUILD fbida-2.13-r1.ebuild 2411 SHA256 752db864d765868cc9b63388bc85e9f2a9c7ca3407a7d6b3eb363849f6a9c74c SHA512 f7126043f89da9ac6cd1d5a044ade51e99efe184e32d9e458a0301bf843c9bdbf82ca22c24e5c2c9eff927f7a04393233f60b0720d542302fd8469adce1b0ec4 WHIRLPOOL 4a4de743d22cd88f4b1a49f9101706eaeff93fa49c0f883147d8ba320b65ccfbae55b6cfc0d1d16d39b82a9fb724fcdef8372c2f5b8df8442c7036fa5d8f9260 +EBUILD fbida-2.14.ebuild 2364 SHA256 b40f6dd04ab901ef247e38f0ab7a6c0768449d956ff344651fe915aa50ba358c SHA512 e264f0f624e48b6fcfb1517e44aa99c73e94eecef8a18dc573743fb91d7cc1876276f352273fa9511d22df966b8c3af64cbdd3aed037ee98661bf3dcd8036943 WHIRLPOOL 3ecd7a53271139eea7b57074db591e6649a3958437101403ce69cc932ba919e966676ab5d13fe6af426c6bc1e70f3dde4696a776b7c135f0b5016f5a8b8f0e28 +EBUILD fbida-9999.ebuild 2454 SHA256 0016f9b9ce0eae576420ee9d212bc580a189967baf04e4683979b8b19dedc6ac SHA512 747e48211b510e3330d56a291bc3036df53e77d866010456a55694c6cc57b5e13194e34aecca8f606b15ea5bb3a06c3ceb6db047d77d039e63c210e21db3150b WHIRLPOOL d19c964a6e3ce7f56cdf99afa250a6c8bbf1fb7be9b8771acc581ec5514b57db2be6f9f7a71ae5a85b20e206446a41be35a707167561fb332ce8c0d3e490e301 +MISC ChangeLog 6718 SHA256 77bcc3ad2f95abc3267ea9b71fc18a006f6cfd831e2d03c84c84d1a845cb9f5e SHA512 d0b8c41855fa8bcc84699be6b50131de4eade4be0f34c56e4b1513eb52cf80c048e726d2abfd53aa5eaa03914062ef930c18858b9e1087aee9f4bd3cee1ff1fc WHIRLPOOL ffa6ef73320365f45c99dd497fdcfffe2c3fb2b9328ab0e2b34d6f9667ab9d43fee68b63f87ddf60f86577ae36c4b0e8dd063fbbc15e8cec47eac78d7cfb2ff0 +MISC ChangeLog-2015 15944 SHA256 62ad8ee6b45997090ac005083c261f04e068435a2076ea3ca7755c127f310d28 SHA512 175cefddf8d2d8dbfbdca48d42ac00f520099f49aca072d84109b9d37235799ecae85d6686eb29c217a785f33b19764861591a3fa5e648aaa17cb8692473ceae WHIRLPOOL 5087a5348e7c622aab3452badb81cefc09dba9a4abd29e7a9ecc495f4467a3201beaeaf961df9584ca80513493d4d4b444c91599585e49277019918c91bf67d2 +MISC metadata.xml 505 SHA256 80a5d9a88a7ab853146983c3f795e1a9709f895362a8d8fe1322a25c16cde996 SHA512 cbd85cfd39d20a07c679f9f98d487795136ee1611fa69712d0539bc94d354a5a76fa59ea9c1da8b4ea7764e705ed16a4f3f77e0783525001c0ee5467a1af6a2f WHIRLPOOL e7bf9e4a7eb70c5fd45c9f3216c8a17d071813d385530e23fade08f71a0f91f4a3c7b6ca9e931d93a293e82c5b057b7d3a27b38605ba10075b0f7a97f8569deb diff --git a/media-gfx/fbida/fbida-2.12.ebuild b/media-gfx/fbida/fbida-2.12.ebuild new file mode 100644 index 000000000000..a54e6b18ce07 --- /dev/null +++ b/media-gfx/fbida/fbida-2.12.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)" +HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/" +SRC_URI=" + http://www.kraxel.org/releases/${PN}/${P}.tar.gz + mirror://gentoo/ida.png.bz2 +" +LICENSE="GPL-2 IJG" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc ppc64 ~sh sparc x86" +IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp" +REQUIRED_USE=" + ghostscript? ( tiff ) +" + +CDEPEND=" + !media-gfx/fbi + app-text/poppler + >=media-libs/fontconfig-2.2 + >=media-libs/freetype-2.0 + media-libs/libepoxy + media-libs/libexif + media-libs/mesa + virtual/jpeg:* + virtual/ttf-fonts + x11-libs/cairo[opengl] + x11-libs/libdrm + curl? ( net-misc/curl ) + gif? ( media-libs/giflib:= ) + lirc? ( app-misc/lirc ) + png? ( media-libs/libpng:* ) + scanner? ( media-gfx/sane-backends ) + tiff? ( media-libs/tiff:* ) + webp? ( media-libs/libwebp ) + X? ( + >=x11-libs/motif-2.3:0 + x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXt + ) +" + +DEPEND=" + ${CDEPEND} + X? ( x11-proto/xextproto x11-proto/xproto ) +" + +RDEPEND=" + ${CDEPEND} + ghostscript? ( + app-text/ghostscript-gpl + ) +" + +src_prepare() { + epatch \ + "${FILESDIR}"/ida-desktop.patch \ + "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch \ + "${FILESDIR}"/${PN}-2.10-fprintf-format.patch + + tc-export CC CPP + + # upstream omission? + echo ${PV} > VERSION +} + +src_configure() { + # Let autoconf do its job and then fix things to build fbida + # according to our specifications + emake Make.config + + gentoo_fbida() { + local useflag=${1} + local config=${2} + + local option="no" + use ${useflag} && option="yes" + + sed -i \ + -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \ + "${S}/Make.config" || die + } + + gentoo_fbida X MOTIF + gentoo_fbida curl LIBCURL + gentoo_fbida fbcon LINUX_FB_H + gentoo_fbida gif LIBUNGIF + gentoo_fbida lirc LIBLIRC + gentoo_fbida ghostscript LIBTIFF + gentoo_fbida png LIBPNG + gentoo_fbida scanner LIBSANE + gentoo_fbida tiff LIBTIFF + gentoo_fbida webp LIBWEBP +} + +src_compile() { + emake verbose=yes +} + +src_install() { + emake \ + DESTDIR="${D}" \ + STRIP="" \ + prefix=/usr \ + install + + dodoc README + + if use fbcon && ! use ghostscript; then + rm \ + "${D}"/usr/bin/fbgs \ + "${D}"/usr/share/man/man1/fbgs.1 \ + || die + fi + + if use X ; then + doicon "${WORKDIR}"/ida.png + domenu desktop/ida.desktop + fi +} diff --git a/media-gfx/fbida/fbida-2.13-r1.ebuild b/media-gfx/fbida/fbida-2.13-r1.ebuild new file mode 100644 index 000000000000..b3534f6df821 --- /dev/null +++ b/media-gfx/fbida/fbida-2.13-r1.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils toolchain-funcs + +DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)" +HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/" +SRC_URI=" + http://www.kraxel.org/releases/${PN}/${P}.tar.gz + mirror://gentoo/ida.png.bz2 +" +LICENSE="GPL-2 IJG" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp" +REQUIRED_USE=" + ghostscript? ( tiff ) +" + +CDEPEND=" + !media-gfx/fbi + app-text/poppler + >=media-libs/fontconfig-2.2 + >=media-libs/freetype-2.0 + media-libs/libepoxy + media-libs/libexif + media-libs/mesa + virtual/jpeg:* + virtual/ttf-fonts + x11-libs/cairo[opengl] + x11-libs/libdrm + curl? ( net-misc/curl ) + gif? ( media-libs/giflib:= ) + lirc? ( app-misc/lirc ) + png? ( media-libs/libpng:* ) + scanner? ( media-gfx/sane-backends ) + tiff? ( media-libs/tiff:* ) + webp? ( media-libs/libwebp ) + X? ( + >=x11-libs/motif-2.3:0 + x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXt + ) +" + +DEPEND=" + ${CDEPEND} + X? ( x11-proto/xextproto x11-proto/xproto ) +" + +RDEPEND=" + ${CDEPEND} + ghostscript? ( + app-text/ghostscript-gpl + ) +" +PATCHES=( + "${FILESDIR}"/ida-desktop.patch + "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch + "${FILESDIR}"/${PN}-2.10-fprintf-format.patch + "${FILESDIR}"/${PN}-2.13-Autoconf.patch +) + +src_configure() { + tc-export CC CPP + + # Let autoconf do its job and then fix things to build fbida + # according to our specifications + emake Make.config + + gentoo_fbida() { + local useflag=${1} + local config=${2} + + local option="no" + use ${useflag} && option="yes" + + sed -i \ + -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \ + "${S}/Make.config" || die + } + + gentoo_fbida X MOTIF + gentoo_fbida curl LIBCURL + gentoo_fbida fbcon LINUX_FB_H + gentoo_fbida gif LIBUNGIF + gentoo_fbida lirc LIBLIRC + gentoo_fbida ghostscript LIBTIFF + gentoo_fbida png LIBPNG + gentoo_fbida scanner LIBSANE + gentoo_fbida tiff LIBTIFF + gentoo_fbida webp LIBWEBP +} + +src_compile() { + emake verbose=yes +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + STRIP="" \ + prefix=/usr \ + install + + dodoc README + + if use fbcon && ! use ghostscript; then + rm \ + "${ED}"/usr/bin/fbgs \ + "${ED}"/usr/share/man/man1/fbgs.1 \ + || die + fi + + if use X ; then + doicon "${WORKDIR}"/ida.png + domenu desktop/ida.desktop + fi +} diff --git a/media-gfx/fbida/fbida-2.14.ebuild b/media-gfx/fbida/fbida-2.14.ebuild new file mode 100644 index 000000000000..482c92a8d701 --- /dev/null +++ b/media-gfx/fbida/fbida-2.14.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils toolchain-funcs + +DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)" +HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/" +SRC_URI=" + http://www.kraxel.org/releases/${PN}/${P}.tar.gz + mirror://gentoo/ida.png.bz2 +" +LICENSE="GPL-2 IJG" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp" +REQUIRED_USE=" + ghostscript? ( tiff ) +" + +CDEPEND=" + !media-gfx/fbi + app-text/poppler + >=media-libs/fontconfig-2.2 + >=media-libs/freetype-2.0 + media-libs/libepoxy + media-libs/libexif + media-libs/mesa + virtual/jpeg:* + virtual/ttf-fonts + x11-libs/cairo[opengl] + x11-libs/libdrm + curl? ( net-misc/curl ) + gif? ( media-libs/giflib:= ) + lirc? ( app-misc/lirc ) + png? ( media-libs/libpng:* ) + scanner? ( media-gfx/sane-backends ) + tiff? ( media-libs/tiff:* ) + webp? ( media-libs/libwebp ) + X? ( + >=x11-libs/motif-2.3:0 + x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXt + ) +" + +DEPEND=" + ${CDEPEND} + X? ( x11-proto/xextproto x11-proto/xproto ) +" + +RDEPEND=" + ${CDEPEND} + ghostscript? ( + app-text/ghostscript-gpl + ) +" +PATCHES=( + "${FILESDIR}"/ida-desktop.patch + "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch + "${FILESDIR}"/${PN}-2.14-Autoconf.patch +) + +src_configure() { + tc-export CC CPP + + # Let autoconf do its job and then fix things to build fbida + # according to our specifications + emake Make.config + + gentoo_fbida() { + local useflag=${1} + local config=${2} + + local option="no" + use ${useflag} && option="yes" + + sed -i \ + -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \ + "${S}/Make.config" || die + } + + gentoo_fbida X MOTIF + gentoo_fbida curl LIBCURL + gentoo_fbida fbcon LINUX_FB_H + gentoo_fbida gif LIBUNGIF + gentoo_fbida lirc LIBLIRC + gentoo_fbida ghostscript LIBTIFF + gentoo_fbida png LIBPNG + gentoo_fbida scanner LIBSANE + gentoo_fbida tiff LIBTIFF + gentoo_fbida webp LIBWEBP +} + +src_compile() { + emake verbose=yes +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + STRIP="" \ + prefix=/usr \ + install + + dodoc README + + if use fbcon && ! use ghostscript; then + rm \ + "${ED}"/usr/bin/fbgs \ + "${ED}"/usr/share/man/man1/fbgs.1 \ + || die + fi + + if use X ; then + doicon "${WORKDIR}"/ida.png + domenu desktop/ida.desktop + fi +} diff --git a/media-gfx/fbida/fbida-9999.ebuild b/media-gfx/fbida/fbida-9999.ebuild new file mode 100644 index 000000000000..dc27ba67de8a --- /dev/null +++ b/media-gfx/fbida/fbida-9999.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils git-r3 toolchain-funcs + +DESCRIPTION="Image viewers for the framebuffer console (fbi) and X11 (ida)" +HOMEPAGE="http://www.kraxel.org/blog/linux/fbida/" +EGIT_REPO_URI=" + git://git.kraxel.org/fbida +" +SRC_URI=" + mirror://gentoo/ida.png.bz2 +" +LICENSE="GPL-2 IJG" +SLOT="0" +KEYWORDS="" +IUSE="curl fbcon ghostscript +gif lirc +png scanner +tiff X +webp" +REQUIRED_USE=" + ghostscript? ( tiff ) +" + +CDEPEND=" + !media-gfx/fbi + app-text/poppler + >=media-libs/fontconfig-2.2 + >=media-libs/freetype-2.0 + media-libs/libepoxy + media-libs/libexif + media-libs/mesa + virtual/jpeg:* + virtual/ttf-fonts + x11-libs/cairo[opengl] + x11-libs/libdrm + curl? ( net-misc/curl ) + gif? ( media-libs/giflib:= ) + lirc? ( app-misc/lirc ) + png? ( media-libs/libpng:* ) + scanner? ( media-gfx/sane-backends ) + tiff? ( media-libs/tiff:* ) + webp? ( media-libs/libwebp ) + X? ( + >=x11-libs/motif-2.3:0 + x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXt + ) +" + +DEPEND=" + ${CDEPEND} + X? ( x11-proto/xextproto x11-proto/xproto ) +" + +RDEPEND=" + ${CDEPEND} + ghostscript? ( + app-text/ghostscript-gpl + ) +" + +src_unpack() { + unpack ${A} + git-r3_src_unpack +} + +src_prepare() { + eapply \ + "${FILESDIR}"/ida-desktop.patch \ + "${FILESDIR}"/${PN}-2.10-giflib-4.2.patch \ + "${FILESDIR}"/${PN}-2.10-fprintf-format.patch + + eapply_user + + tc-export CC CPP + + # upstream omission? + echo ${PV} > VERSION +} + +src_configure() { + # Let autoconf do its job and then fix things to build fbida + # according to our specifications + emake Make.config + + gentoo_fbida() { + local useflag=${1} + local config=${2} + + local option="no" + use ${useflag} && option="yes" + + sed -i \ + -e "s|HAVE_${config}.*|HAVE_${config} := ${option}|" \ + "${S}/Make.config" || die + } + + gentoo_fbida X MOTIF + gentoo_fbida curl LIBCURL + gentoo_fbida fbcon LINUX_FB_H + gentoo_fbida gif LIBUNGIF + gentoo_fbida lirc LIBLIRC + gentoo_fbida ghostscript LIBTIFF + gentoo_fbida png LIBPNG + gentoo_fbida scanner LIBSANE + gentoo_fbida tiff LIBTIFF + gentoo_fbida webp LIBWEBP +} + +src_compile() { + emake verbose=yes +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + STRIP="" \ + prefix=/usr \ + install + + dodoc README + + if use fbcon && ! use ghostscript; then + rm \ + "${ED}"/usr/bin/fbgs \ + "${ED}"/usr/share/man/man1/fbgs.1 \ + || die + fi + + if use X ; then + doicon "${WORKDIR}"/ida.png + domenu desktop/ida.desktop + fi +} diff --git a/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch b/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch new file mode 100644 index 000000000000..d1c0b36dbfba --- /dev/null +++ b/media-gfx/fbida/files/fbida-2.10-fprintf-format.patch @@ -0,0 +1,11 @@ +--- a/wr/write-ps.c ++++ b/wr/write-ps.c +@@ -458,7 +458,7 @@ + fprintf(fp,"\n"); + } + } +- fprintf(fp,footer); ++ fprintf(fp, "%s", footer); + return 0; + } + diff --git a/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch b/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch new file mode 100644 index 000000000000..1e21b8af2bd7 --- /dev/null +++ b/media-gfx/fbida/files/fbida-2.10-giflib-4.2.patch @@ -0,0 +1,17 @@ +--- a/rd/read-gif.c ++++ b/rd/read-gif.c +@@ -14,6 +14,14 @@ + } + #else + #define GIF5DATA(x) ++// v4.2 removed PrintGifError in favor of GifErrorString, but with a different ++// prototype than v5 ++#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && (GIFLIB_MAJOR == 4) && (GIFLIB_MINOR == 2) ++static void PrintGifError() ++{ ++ fprintf(stderr, "GIF library error: %s\n", GifErrorString()); ++} ++#endif + #define PrintGifError(e) PrintGifError() + #define DGifOpenFileHandle(x,e) DGifOpenFileHandle(x) + #define DGifCloseFile(x,e) DGifCloseFile(x) diff --git a/media-gfx/fbida/files/fbida-2.13-Autoconf.patch b/media-gfx/fbida/files/fbida-2.13-Autoconf.patch new file mode 100644 index 000000000000..41c4e2f7d9bb --- /dev/null +++ b/media-gfx/fbida/files/fbida-2.13-Autoconf.patch @@ -0,0 +1,11 @@ +--- a/mk/Autoconf.mk ++++ b/mk/Autoconf.mk +@@ -162,7 +162,7 @@ + @true + + Make.config: $(srcdir)/GNUmakefile +- @echo -e "$(make-config-q)" > $@ ++ @printf "$(make-config-q)" > $@ + @echo + @echo "Make.config written, edit if needed" + @echo diff --git a/media-gfx/fbida/files/fbida-2.14-Autoconf.patch b/media-gfx/fbida/files/fbida-2.14-Autoconf.patch new file mode 100644 index 000000000000..9aefdcd2fe61 --- /dev/null +++ b/media-gfx/fbida/files/fbida-2.14-Autoconf.patch @@ -0,0 +1,11 @@ +--- a/mk/Autoconf.mk ++++ b/mk/Autoconf.mk +@@ -162,7 +162,7 @@ + @true + + Make.config: $(srcdir)/GNUmakefile +- @/bin/echo -e "$(make-config-q)" > $@ ++ @printf "$(make-config-q)" > $@ + @echo + @echo "Make.config written, edit if needed" + @echo diff --git a/media-gfx/fbida/files/ida-desktop.patch b/media-gfx/fbida/files/ida-desktop.patch new file mode 100644 index 000000000000..eaac0ed69558 --- /dev/null +++ b/media-gfx/fbida/files/ida-desktop.patch @@ -0,0 +1,17 @@ +--- a/desktop/ida.desktop ++++ b/desktop/ida.desktop +@@ -1,9 +1,10 @@ + [Desktop Entry] + Type=Application +-Encoding=UTF-8 + Name=ida + GenericName=Image Viewer ++Comment=Image Viewer + Exec=ida %F +-Terminal=no +-Categories=Motif;Graphics;Viewer +-MimeType=image/jpeg;image/tiff;image/png ++Terminal=false ++Categories=Motif;Graphics;Viewer; ++MimeType=image/jpeg;image/tiff;image/png; ++Icon=ida diff --git a/media-gfx/fbida/metadata.xml b/media-gfx/fbida/metadata.xml new file mode 100644 index 000000000000..32d2983868dd --- /dev/null +++ b/media-gfx/fbida/metadata.xml @@ -0,0 +1,13 @@ +<?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> +<use> +<flag name="fbcon">Install the framebuffer image viewer "fbi"</flag> +<flag name="ghostscript">Install the framebuffer ghostscript viewer "fbgs"</flag> +<flag name="X">Install the Motif based image viewer "ida"</flag> +<flag name="webp">Enable support for the WebP image format</flag> +</use> +</pkgmetadata> |