summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2019-11-24 15:13:40 +0200
committerJoonas Niilola <juippis@gentoo.org>2019-11-24 15:13:40 +0200
commitd8872668dbb45f7cc92d3bb05c1ab36545c15f45 (patch)
tree487ff5aabcc1f504c8c471fe38de3d1256928f7a /media-libs
parentmedia-libs/chromaprint: EAPI-7 bump, fix DEPENDs and DESCRIPTION (diff)
downloadgentoo-d8872668dbb45f7cc92d3bb05c1ab36545c15f45.tar.gz
gentoo-d8872668dbb45f7cc92d3bb05c1ab36545c15f45.tar.bz2
gentoo-d8872668dbb45f7cc92d3bb05c1ab36545c15f45.zip
media-libs/imlib2: bump to 1.6.0
Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/imlib2/Manifest1
-rw-r--r--media-libs/imlib2/imlib2-1.6.0.ebuild77
2 files changed, 78 insertions, 0 deletions
diff --git a/media-libs/imlib2/Manifest b/media-libs/imlib2/Manifest
index 8dafdfb2936b..cdabbeaf2240 100644
--- a/media-libs/imlib2/Manifest
+++ b/media-libs/imlib2/Manifest
@@ -1 +1,2 @@
DIST imlib2-1.5.1.tar.gz 1020701 BLAKE2B 33213a49293fba9e86cfec312d3cd8018c2284d60040b63899778d2fa65bffe173926eb14bc893c1a80e1472084a711423f77f6288779486512074e75d92acfd SHA512 9872aa3c4d45b1e9cbb0b1d0a7d5b47256e35f01a4fe19d84d276096c2da053c55bd28554441f92464d19edf1222b427571ba7b06d716031021ff1f9b4bc9656
+DIST imlib2-1.6.0.tar.gz 1038080 BLAKE2B 1e8d2c446dcd5200261e21e4460f35d6d4e9dfac6adc608628e2a47b39464ba1b9e7959f9ffe907a445e051e9bbb04f8fba5eb85703b11f8eff562284f055fe0 SHA512 078fa60783a052590d8c84ee0a1d0b8be3808fddcb4f7be83bfb17181106e2f8c45cb2eb2b41b0a7f5b7c61b15791a71d50c82b1557b61d4f6cea94b87452635
diff --git a/media-libs/imlib2/imlib2-1.6.0.ebuild b/media-libs/imlib2/imlib2-1.6.0.ebuild
new file mode 100644
index 000000000000..de1d4da1407f
--- /dev/null
+++ b/media-libs/imlib2/imlib2-1.6.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Version 2 of an advanced replacement library for libraries like libXpm"
+HOMEPAGE="https://www.enlightenment.org/
+ https://sourceforge.net/projects/enlightenment/files/imlib2-src/"
+SRC_URI="https://downloads.sourceforge.net/enlightenment/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="+X bzip2 cpu_flags_x86_mmx cpu_flags_x86_sse2 doc +gif +jpeg mp3 +png +shm
+ static-libs +tiff +webp zlib"
+
+REQUIRED_USE="shm? ( X )"
+
+RDEPEND="
+ media-libs/freetype:2[${MULTILIB_USEDEP}]
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+ gif? ( media-libs/giflib[${MULTILIB_USEDEP}] )
+ jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
+ mp3? ( media-libs/libid3tag[${MULTILIB_USEDEP}] )
+ png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
+ tiff? ( >=media-libs/tiff-4.0.4:0[${MULTILIB_USEDEP}] )
+ webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
+ X? (
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ X? ( x11-base/xorg-proto )"
+BDEPEND="virtual/pkgconfig"
+
+multilib_src_configure() {
+ local myeconfargs=(
+ $(use_with X x)
+ $(use_with bzip2)
+ $(use_with gif)
+ $(use_with jpeg)
+ $(use_with mp3 id3)
+ $(use_with png)
+ $(use_with shm x-shm-fd)
+ $(use_enable static-libs static)
+ $(use_with tiff)
+ $(use_with webp)
+ $(use_with zlib)
+ )
+
+ # imlib2 has different configure options for x86/amd64 assembly
+ if [[ $(tc-arch) == amd64 ]]; then
+ myeconfargs+=( $(use_enable cpu_flags_x86_sse2 amd64) --disable-mmx )
+ else
+ myeconfargs+=( --disable-amd64 $(use_enable cpu_flags_x86_mmx mmx) )
+ fi
+
+ ECONF_SOURCE="${S}" \
+ econf "${myeconfargs[@]}"
+}
+
+multilib_src_install() {
+ V=1 emake install DESTDIR="${D}"
+ find "${D}" -name '*.la' -delete || die
+}
+
+multilib_src_install_all() {
+ if use doc; then
+ local HTML_DOCS=( "${S}"/doc/. )
+ rm "${S}"/doc/Makefile.{am,in} || die
+ fi
+ einstalldocs
+}