diff options
Diffstat (limited to 'media-libs/libheif')
-rw-r--r-- | media-libs/libheif/Manifest | 17 | ||||
-rw-r--r-- | media-libs/libheif/files/heif_test.go | 155 | ||||
-rw-r--r-- | media-libs/libheif/libheif-1.5.1.ebuild | 68 | ||||
-rw-r--r-- | media-libs/libheif/libheif-1.6.1.ebuild | 68 | ||||
-rw-r--r-- | media-libs/libheif/libheif-1.6.2.ebuild | 68 | ||||
-rw-r--r-- | media-libs/libheif/libheif-1.8.0.ebuild | 59 | ||||
-rw-r--r-- | media-libs/libheif/libheif-1.9.1.ebuild (renamed from media-libs/libheif/libheif-1.7.0-r1.ebuild) | 21 | ||||
-rw-r--r-- | media-libs/libheif/libheif-9999.ebuild | 18 | ||||
-rw-r--r-- | media-libs/libheif/metadata.xml | 9 |
9 files changed, 38 insertions, 445 deletions
diff --git a/media-libs/libheif/Manifest b/media-libs/libheif/Manifest index dcd61a0ef16b..8618834ee8b6 100644 --- a/media-libs/libheif/Manifest +++ b/media-libs/libheif/Manifest @@ -1,14 +1,5 @@ -AUX heif_test.go 4326 BLAKE2B c9995e9caf35db5f936dcfc54592946e81e0fda9e785309526cce40c43c2ae9663d091a30c46adb97602a6ef1921503fd5c1873b8524774dd3f24a2b3c9f64c7 SHA512 af6212a5cf6cb4e96508cc9ce63072c42e3ec36a16192e4bf0ae2ccd3949f0259617aba544c3eeb2816ffb9747d61b4476fa152720cb2ec708153c967ef08e20 AUX libheif-1.7.0-aom.patch 1530 BLAKE2B 150b86b0b1ed872ff13dfc59933b1aec80d259456666f7bd3fac11d4c5d220349b2ca927f36835e8710f476e1df2ca13c7a5126545c80a2abd0b069953186f18 SHA512 f30474c9f31aa8676352b9848a49699c320ead37a8a59b5c62b98945e520af40fc24fcbf225240c3237cde638d7b274e45dc135a16a3e8a7b278bbafc2cfca3d -DIST libheif-1.5.1.tar.gz 1510087 BLAKE2B 1dd5e913c8913c6b62b770653585f8ccf7cda14c4dd79ff2073bf085da4d730accaef8d0f8008ac941238a7e3e131add1a218e0c78a886847b3bcf253d66c9b6 SHA512 05e32ebff08d5f0e82e9b1107253c27882ae1694150033fe7b3ca07db8c64567f09002081276e92a3b490a63022a1522d577b094a7f489742139758d17f484b8 -DIST libheif-1.6.1.tar.gz 1514950 BLAKE2B d658f0c408f9a09eaac890119119327bd3e9c84db785d001b2c7a979b9574a6723403fe063ed6ce77812bface04be124e808fc90c1325c13e3d87f8b46ac0b65 SHA512 5a2104e529d59c23c988b6c0c167f9e7017ff77763eb71fee1c26f97624e9d7e2d0f863123d1886536d37f96ea6b93969a1c53e747672c54a2220aa6f47be1bf -DIST libheif-1.6.2.tar.gz 1515763 BLAKE2B e7a901394349bc8bbf633a0193d7a08a1cecf7e97a8ac709efb9c2e5e6da387c7fa5e8b551cecf1f67b4e7a7d06f034e64c20d7c55f9a7898c0badb79ed485f7 SHA512 41848c05d88f82827ebdd0662a1870ce8b7899f6a86ef5aa483b301176602da8e69d2c5a49b4d911bc0cac51bdab81a06fd43efae2722092cc09c02119c95f07 -DIST libheif-1.7.0.tar.gz 1526096 BLAKE2B 74b8284875321781d13d17b877eb8291ecdd0fe1700f73a433d3b125a8ee6b33a326310d729e62bac9d9fecfea095f21ef590e711d550dcaac79570b3f917885 SHA512 13c95540fee13f3fba8d8a4f69886bf5563e9fa22c5cd113dbe16d20670b077b5961171e5f9fb0f256cc42c4650e13465c93d3fbb03013997a7fc163463e8b3a -DIST libheif-1.8.0.tar.gz 1544438 BLAKE2B 983d3675c6788f69d7839d72064ca97d7347f5b2105b489ea6834c6ca5ab3d0ad8dd9157ab9d8636d3978a308d9f1983c8e5b0d151ffd9c013c9b2c9ef059d74 SHA512 e6edf03c0baf7d55ace57b8de1cf05d3b6708a0bd58d4191599960ad3924509dd7e9528a021586012b768a5a5b253e5bab470b944a2ead45f85274842da4913a -EBUILD libheif-1.5.1.ebuild 1556 BLAKE2B 965c7293f6f3894e58624d42b431e99e3174f087f5d2a6b4912f96ee400c2dac556d90090c9e90dbaf76e4fef3afc4978cf20184a02547c3d2b151f0fa0313b5 SHA512 b32bcfc2968ee4e85bf2467a6ad951c17556a9d4fb2b930f7ab8faa6cc60cd6b5db9ed8d06c2049773e0c8c765711466ebf86f8da0f001fbd4e7ac9373497f06 -EBUILD libheif-1.6.1.ebuild 1563 BLAKE2B c5c570831298ff99d120869260df0cf7d4820112038afc5518d48f67da7d86e362ddcb7820f9c1407a2b4bff72be57c59e694a05d573beecaf2b99dbd30fb1ce SHA512 62eee0b51e08d6323ab088611c79647e08e71da1f58ef99f214ee3762fec52f91b9682f9bbf995e8da7d02cdf9917b92ee42fb32d4fd97035963923d074ce423 -EBUILD libheif-1.6.2.ebuild 1568 BLAKE2B 7b2885d783893ff76fd2dc40e9d4ef526154be1cddfd57bb8df6faf3de9c9035138853050cb148372332e16372a61fc342f8dc6e2a650f6d3acbdcee0210f039 SHA512 1996a90ad858246103d847e90d1e1fcede142d3a61ff29be6a5a849bef41ff3adedf91bc7f42a9d01a62e1d570f5ca952b3dcd0b9895b563324581627fadaeba -EBUILD libheif-1.7.0-r1.ebuild 1489 BLAKE2B 26c3bf27f9c95a2b5d2dc93889b4048200de195a6b1fbd1b5e2853705cc132619c5b62c1829349964ffe83cba682e7c57a5ca3ceae431c929d896115a3ace566 SHA512 d87cf9eec5725c6310e38505fd05687ce485331a42851a9d828ae41601ee645e6439805e48bbffb8ff79fa5cbd2ca944d0ada078211023c5799cece0fac78a1c -EBUILD libheif-1.8.0.ebuild 1450 BLAKE2B 064f43ad10a73e251d79d076f3fc2e2db3f651f8af035e8c7248251d47d75596527b981a111f24e8f0657ca9c68fec3f50ff111722bf3df19872c4dbe2a6167f SHA512 06fe2498ddd4bd00de31aa7d673e443b7e869437f33dc3eefb72ef5f69dc869aac60496f669030294df57a96ead462e79ea274cab46ae6f3d2cfa316be773507 -EBUILD libheif-9999.ebuild 1450 BLAKE2B 064f43ad10a73e251d79d076f3fc2e2db3f651f8af035e8c7248251d47d75596527b981a111f24e8f0657ca9c68fec3f50ff111722bf3df19872c4dbe2a6167f SHA512 06fe2498ddd4bd00de31aa7d673e443b7e869437f33dc3eefb72ef5f69dc869aac60496f669030294df57a96ead462e79ea274cab46ae6f3d2cfa316be773507 -MISC metadata.xml 485 BLAKE2B 5e631eaa6f914c0a0d89bfa65a6287b466755d3cdf29461c92ed6ca4b37e673458edf2ffefb84f31b8b86340d153155b6366cc692e7c5d7fadb9461fe43baa84 SHA512 5b88224363374aeafd2b3c5a5d0666d5b22a23a260a65323bce1102b7af6ebe21e7d07c1f0409289abd7c64d2cacb3dc1a4393ee11cbfb0db94acee8481e8fbe +DIST libheif-1.9.1.tar.gz 1556450 BLAKE2B 5829afbde9c8ad8d7a2ed46e736d17e84dc6f5f2c4deccd1647c3048588fb8bdec96764a31e7801aac81d5f0a3f1c3e1474b8bd5e2d4d84236ef07478e62933e SHA512 a41ff9666877904da095c72af743b56196c75ce90deaeb1998be7eba9729a62282827e7e916e2a067489cc78e558c55fbb6d70da6a5b5281f6d2efcccbe6dbbe +EBUILD libheif-1.9.1.ebuild 1594 BLAKE2B 32fcf5315081f5aa4437c88de45393c2965a391f0d37fde470f3527d8ce5a5c346088ce0e119672cafc4788eced325c7eb415f4252a16d455995249636f38912 SHA512 45026b98d6cab726bea57cc32b16ac5ee535c1b56355f75108cb5c3e566a7df07d74caa566deb8baf3046803c69c35ed71626d07dbe7676ef0a9a4c5b8cfbdbf +EBUILD libheif-9999.ebuild 1597 BLAKE2B 7cc9e56415e52d885e159897fee4ef8e1da9d8d8e3a545d409692f64d01f0cc23da0dbc994d725afd7090051dc790fc8e1e466bebfcbc9df7e53a336c1879f0f SHA512 5b9b509908870e681e34c7f037fec5682d1b18deefe3cfbbbbbfd73f9e1c0da6fb731c5aa0436c0f70544fbfaec4ec93e8ef85c7b807b7d285bb3d82bb75aea6 +MISC metadata.xml 686 BLAKE2B f28565928ef395759abf7b1cbc0bafede7f9299f74b8748534135379d1778f24af394dde234e6d727cbead1a345d2c86c7dc3d93cabf81441ff072a38e7c571a SHA512 b06a9e574156521aa7ef763aae5fb2a83c20aa7265043f3992a9b4acae775f747d7ffbbe2fe5ef57e5e04dc89906c71c9ea1c7bc8ed76f94c347b78d7115ac4f diff --git a/media-libs/libheif/files/heif_test.go b/media-libs/libheif/files/heif_test.go deleted file mode 100644 index 187d773dea60..000000000000 --- a/media-libs/libheif/files/heif_test.go +++ /dev/null @@ -1,155 +0,0 @@ -/* - * GO interface to libheif - * Copyright (c) 2018 struktur AG, Joachim Bauch <bauch@struktur.de> - * - * This file is part of heif, an example application using libheif. - * - * heif is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * heif is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with heif. If not, see <http://www.gnu.org/licenses/>. - */ - -package heif - -import ( - "fmt" - "image" - "io/ioutil" - "os" - "path" - "testing" -) - -func TestGetVersion(t *testing.T) { - version := GetVersion() - if version == "" { - t.Fatal("Version is missing") - } -} - -func CheckHeifImage(t *testing.T, handle *ImageHandle, thumbnail bool) { - handle.GetWidth() - handle.GetHeight() - handle.HasAlphaChannel() - handle.HasDepthImage() - count := handle.GetNumberOfDepthImages() - if ids := handle.GetListOfDepthImageIDs(); len(ids) != count { - t.Errorf("Expected %d depth image ids, got %d", count, len(ids)) - } - if !thumbnail { - count = handle.GetNumberOfThumbnails() - ids := handle.GetListOfThumbnailIDs() - if len(ids) != count { - t.Errorf("Expected %d thumbnail image ids, got %d", count, len(ids)) - } - for _, id := range ids { - if thumb, err := handle.GetThumbnail(id); err != nil { - t.Errorf("Could not get thumbnail %d: %s", id, err) - } else { - CheckHeifImage(t, thumb, true) - } - } - } - - if img, err := handle.DecodeImage(ColorspaceUndefined, ChromaUndefined, nil); err != nil { - t.Errorf("Could not decode image: %s", err) - } else { - img.GetColorspace() - img.GetChromaFormat() - } -} - -func CheckHeifFile(t *testing.T, ctx *Context) { - if count := ctx.GetNumberOfTopLevelImages(); count != 2 { - t.Errorf("Expected %d top level images, got %d", 2, count) - } - if ids := ctx.GetListOfTopLevelImageIDs(); len(ids) != 2 { - t.Errorf("Expected %d top level image ids, got %+v", 2, ids) - } - if _, err := ctx.GetPrimaryImageID(); err != nil { - t.Errorf("Expected a primary image, got %s", err) - } - if handle, err := ctx.GetPrimaryImageHandle(); err != nil { - t.Errorf("Could not get primary image handle: %s", err) - } else { - if !handle.IsPrimaryImage() { - t.Error("Expected primary image") - } - CheckHeifImage(t, handle, false) - } -} - -func TestReadFromFile(t *testing.T) { - ctx, err := NewContext() - if err != nil { - t.Fatalf("Can't create context: %s", err) - } - - filename := path.Join("..", "..", "examples", "example.heic") - if err := ctx.ReadFromFile(filename); err != nil { - t.Fatalf("Can't read from %s: %s", filename, err) - } - - CheckHeifFile(t, ctx) -} - -func TestReadFromMemory(t *testing.T) { - ctx, err := NewContext() - if err != nil { - t.Fatalf("Can't create context: %s", err) - } - - filename := path.Join("..", "..", "examples", "example.heic") - data, err := ioutil.ReadFile(filename) - if err != nil { - t.Fatalf("Can't read file %s: %s", filename, err) - } - if err := ctx.ReadFromMemory(data); err != nil { - t.Fatalf("Can't read from memory: %s", err) - } - data = nil // Make sure future processing works if "data" is GC'd - - CheckHeifFile(t, ctx) -} - -func TestReadImage(t *testing.T) { - filename := path.Join("..", "..", "examples", "example.heic") - fp, err := os.Open(filename) - if err != nil { - t.Fatalf("Could not open %s: %s", filename, err) - } - defer fp.Close() - - config, format1, err := image.DecodeConfig(fp) - if err != nil { - t.Fatalf("Could not load image config from %s: %s", filename, err) - } - if format1 != "heif" { - t.Errorf("Expected format heif, got %s", format1) - } - if _, err := fp.Seek(0, 0); err != nil { - t.Fatalf("Could not seek to start of %s: %s", filename, err) - } - - img, format2, err := image.Decode(fp) - if err != nil { - t.Fatalf("Could not load image from %s: %s", filename, err) - } - if format2 != "heif" { - t.Errorf("Expected format heif, got %s", format2) - } - - r := img.Bounds() - if config.Width != (r.Max.X-r.Min.X) || config.Height != (r.Max.Y-r.Min.Y) { - fmt.Printf("Image size %+v does not match config %+v\n", r, config) - } -} diff --git a/media-libs/libheif/libheif-1.5.1.ebuild b/media-libs/libheif/libheif-1.5.1.ebuild deleted file mode 100644 index 157ef7068071..000000000000 --- a/media-libs/libheif/libheif-1.5.1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools xdg multilib-minimal - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" - inherit git-r3 -else - SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="amd64 arm64 x86" -fi - -DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" -HOMEPAGE="https://github.com/strukturag/libheif" - -LICENSE="GPL-3" -SLOT="0/1.5" -IUSE="static-libs test +threads" -RESTRICT="!test? ( test )" - -BDEPEND="test? ( dev-lang/go )" -DEPEND=" - media-libs/libde265:=[${MULTILIB_USEDEP}] - media-libs/libpng:0=[${MULTILIB_USEDEP}] - media-libs/x265:=[${MULTILIB_USEDEP}] - sys-libs/zlib:=[${MULTILIB_USEDEP}] - virtual/jpeg:0=[${MULTILIB_USEDEP}] -" -RDEPEND="${DEPEND}" - -src_prepare() { - default - - # heif_test.go is not included in the tarball - # https://github.com/strukturag/libheif/issues/289 - cp "${FILESDIR}/heif_test.go" "${S}/go/heif" || die - - sed -i -e 's:-Werror::' \ - configure.ac || die - - eautoreconf - - # prevent "stat heif-test.go: no such file or directory" - multilib_copy_sources -} - -multilib_src_configure() { - local myeconfargs=( - $(use_enable threads multithreading) - $(use_enable static-libs static) - ) - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" -} - -multilib_src_test() { - default - emake -C go test -} - -multilib_src_install_all() { - find "${ED}" -name '*.la' -delete || die - if ! use static-libs ; then - find "${ED}" -name "*.a" -delete || die - fi -} diff --git a/media-libs/libheif/libheif-1.6.1.ebuild b/media-libs/libheif/libheif-1.6.1.ebuild deleted file mode 100644 index 93703270cf38..000000000000 --- a/media-libs/libheif/libheif-1.6.1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools xdg multilib-minimal - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" - inherit git-r3 -else - SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" -fi - -DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" -HOMEPAGE="https://github.com/strukturag/libheif" - -LICENSE="GPL-3" -SLOT="0/1.6" -IUSE="static-libs test +threads" - -RESTRICT="!test? ( test )" - -BDEPEND="test? ( dev-lang/go )" -DEPEND=" - media-libs/libde265:=[${MULTILIB_USEDEP}] - media-libs/libpng:0=[${MULTILIB_USEDEP}] - media-libs/x265:=[${MULTILIB_USEDEP}] - sys-libs/zlib:=[${MULTILIB_USEDEP}] - virtual/jpeg:0=[${MULTILIB_USEDEP}] -" -RDEPEND="${DEPEND}" - -src_prepare() { - default - - # heif_test.go is not included in the tarball - # https://github.com/strukturag/libheif/issues/289 - cp "${FILESDIR}/heif_test.go" "${S}/go/heif" || die - - sed -i -e 's:-Werror::' configure.ac || die - - eautoreconf - - # prevent "stat heif-test.go: no such file or directory" - multilib_copy_sources -} - -multilib_src_configure() { - local myeconfargs=( - $(use_enable threads multithreading) - $(use_enable static-libs static) - ) - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" -} - -multilib_src_test() { - default - emake -C go test -} - -multilib_src_install_all() { - find "${ED}" -name '*.la' -delete || die - if ! use static-libs ; then - find "${ED}" -name "*.a" -delete || die - fi -} diff --git a/media-libs/libheif/libheif-1.6.2.ebuild b/media-libs/libheif/libheif-1.6.2.ebuild deleted file mode 100644 index 9a74d8cf8cbf..000000000000 --- a/media-libs/libheif/libheif-1.6.2.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools xdg multilib-minimal - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" - inherit git-r3 -else - SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" -fi - -DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" -HOMEPAGE="https://github.com/strukturag/libheif" - -LICENSE="GPL-3" -SLOT="0/1.6" -IUSE="static-libs test +threads" - -RESTRICT="!test? ( test )" - -BDEPEND="test? ( dev-lang/go )" -DEPEND=" - media-libs/libde265:=[${MULTILIB_USEDEP}] - media-libs/libpng:0=[${MULTILIB_USEDEP}] - media-libs/x265:=[${MULTILIB_USEDEP}] - sys-libs/zlib:=[${MULTILIB_USEDEP}] - virtual/jpeg:0=[${MULTILIB_USEDEP}] -" -RDEPEND="${DEPEND}" - -src_prepare() { - default - - # heif_test.go is not included in the tarball - # https://github.com/strukturag/libheif/issues/289 - cp "${FILESDIR}/heif_test.go" "${S}/go/heif" || die - - sed -i -e 's:-Werror::' configure.ac || die - - eautoreconf - - # prevent "stat heif-test.go: no such file or directory" - multilib_copy_sources -} - -multilib_src_configure() { - local myeconfargs=( - $(use_enable threads multithreading) - $(use_enable static-libs static) - ) - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" -} - -multilib_src_test() { - default - emake -C go test -} - -multilib_src_install_all() { - find "${ED}" -name '*.la' -delete || die - if ! use static-libs ; then - find "${ED}" -name "*.a" -delete || die - fi -} diff --git a/media-libs/libheif/libheif-1.8.0.ebuild b/media-libs/libheif/libheif-1.8.0.ebuild deleted file mode 100644 index 6c16fb0e9ab5..000000000000 --- a/media-libs/libheif/libheif-1.8.0.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools xdg multilib-minimal - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" - inherit git-r3 -else - SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" -fi - -DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" -HOMEPAGE="https://github.com/strukturag/libheif" - -LICENSE="GPL-3" -SLOT="0/1.8" -IUSE="gdk-pixbuf go static-libs test +threads" -RESTRICT="!test? ( test )" - -BDEPEND="test? ( dev-lang/go )" -DEPEND=" - media-libs/libde265:=[${MULTILIB_USEDEP}] - media-libs/libpng:0=[${MULTILIB_USEDEP}] - media-libs/x265:=[${MULTILIB_USEDEP}] - sys-libs/zlib:=[${MULTILIB_USEDEP}] - virtual/jpeg:0=[${MULTILIB_USEDEP}] - gdk-pixbuf? ( x11-libs/gdk-pixbuf ) - go? ( dev-lang/go ) -" -RDEPEND="${DEPEND}" - -src_prepare() { - default - - sed -i -e 's:-Werror::' configure.ac || die - - eautoreconf - - # prevent "stat heif-test.go: no such file or directory" - multilib_copy_sources -} - -multilib_src_configure() { - local econf_args=( - $(multilib_is_native_abi && use_enable go || echo --disable-go) - $(use_enable gdk-pixbuf) - $(use_enable static-libs static) - $(use_enable threads multithreading) - ) - ECONF_SOURCE="${S}" econf "${econf_args[@]}" -} - -multilib_src_install_all() { - find "${ED}" -name '*.la' -delete || die -} diff --git a/media-libs/libheif/libheif-1.7.0-r1.ebuild b/media-libs/libheif/libheif-1.9.1.ebuild index 389834d35862..49f02ffbc2bb 100644 --- a/media-libs/libheif/libheif-1.7.0-r1.ebuild +++ b/media-libs/libheif/libheif-1.9.1.ebuild @@ -6,10 +6,10 @@ EAPI=7 inherit autotools xdg multilib-minimal if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" + EGIT_REPO_URI="https://github.com/strukturag/libheif.git" inherit git-r3 else - SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" + SRC_URI="https://github.com/strukturag/libheif/releases/download/v${PV}/${P}.tar.gz" KEYWORDS="amd64 ~arm arm64 ~ppc64 x86" fi @@ -17,24 +17,24 @@ DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" HOMEPAGE="https://github.com/strukturag/libheif" LICENSE="GPL-3" -SLOT="0/1.7" +SLOT="0/1.9" IUSE="gdk-pixbuf go static-libs test +threads" +REQUIRED_USE="test? ( go )" + RESTRICT="!test? ( test )" BDEPEND="test? ( dev-lang/go )" DEPEND=" + >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] media-libs/libde265:=[${MULTILIB_USEDEP}] media-libs/libpng:0=[${MULTILIB_USEDEP}] media-libs/x265:=[${MULTILIB_USEDEP}] sys-libs/zlib:=[${MULTILIB_USEDEP}] virtual/jpeg:0=[${MULTILIB_USEDEP}] - gdk-pixbuf? ( x11-libs/gdk-pixbuf ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] ) go? ( dev-lang/go ) " RDEPEND="${DEPEND}" -PATCHES=( - "${FILESDIR}"/${P}-aom.patch -) src_prepare() { default @@ -49,7 +49,7 @@ src_prepare() { multilib_src_configure() { local econf_args=( - $(multilib_is_native_abi && use_enable go || echo --disable-go) + $(multilib_is_native_abi && use go || echo --disable-go) $(use_enable gdk-pixbuf) $(use_enable static-libs static) $(use_enable threads multithreading) @@ -57,6 +57,11 @@ multilib_src_configure() { ECONF_SOURCE="${S}" econf "${econf_args[@]}" } +multilib_src_test() { + default + emake -C go test +} + multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die } diff --git a/media-libs/libheif/libheif-9999.ebuild b/media-libs/libheif/libheif-9999.ebuild index 6c16fb0e9ab5..20821993904a 100644 --- a/media-libs/libheif/libheif-9999.ebuild +++ b/media-libs/libheif/libheif-9999.ebuild @@ -6,10 +6,10 @@ EAPI=7 inherit autotools xdg multilib-minimal if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/strukturag/${PN}.git" + EGIT_REPO_URI="https://github.com/strukturag/libheif.git" inherit git-r3 else - SRC_URI="https://github.com/strukturag/${PN}/releases/download/v${PV}/${P}.tar.gz" + SRC_URI="https://github.com/strukturag/libheif/releases/download/v${PV}/${P}.tar.gz" KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" fi @@ -17,18 +17,21 @@ DESCRIPTION="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" HOMEPAGE="https://github.com/strukturag/libheif" LICENSE="GPL-3" -SLOT="0/1.8" +SLOT="0/1.9" IUSE="gdk-pixbuf go static-libs test +threads" +REQUIRED_USE="test? ( go )" + RESTRICT="!test? ( test )" BDEPEND="test? ( dev-lang/go )" DEPEND=" + >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] media-libs/libde265:=[${MULTILIB_USEDEP}] media-libs/libpng:0=[${MULTILIB_USEDEP}] media-libs/x265:=[${MULTILIB_USEDEP}] sys-libs/zlib:=[${MULTILIB_USEDEP}] virtual/jpeg:0=[${MULTILIB_USEDEP}] - gdk-pixbuf? ( x11-libs/gdk-pixbuf ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf[${MULTILIB_USEDEP}] ) go? ( dev-lang/go ) " RDEPEND="${DEPEND}" @@ -46,7 +49,7 @@ src_prepare() { multilib_src_configure() { local econf_args=( - $(multilib_is_native_abi && use_enable go || echo --disable-go) + $(multilib_is_native_abi && use go || echo --disable-go) $(use_enable gdk-pixbuf) $(use_enable static-libs static) $(use_enable threads multithreading) @@ -54,6 +57,11 @@ multilib_src_configure() { ECONF_SOURCE="${S}" econf "${econf_args[@]}" } +multilib_src_test() { + default + emake -C go test +} + multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die } diff --git a/media-libs/libheif/metadata.xml b/media-libs/libheif/metadata.xml index f92d3bad5e85..5ae142ce31e4 100644 --- a/media-libs/libheif/metadata.xml +++ b/media-libs/libheif/metadata.xml @@ -1,7 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>jakov.smolic@sartura.hr</email> + <name>Jakov Smolic</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> <use> <flag name='gdk-pixbuf'>Enable <pkg>x11-libs/gdk-pixbuf</pkg> plugin</flag> <flag name='go'>Enable building <pkg>dev-lang/go</pkg> code/examples</flag> |