diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
commit | 8b4ace9c50842c5b83401ea7b179dcab940387e1 (patch) | |
tree | 230f3135ceaace633cf93e9838b185c4a6664c2e /media-libs/libxmlbird | |
parent | 9ee6d97c2883d42f204a533a8bc1f4562df778fb (diff) |
gentoo resync : 23.09.2020
Diffstat (limited to 'media-libs/libxmlbird')
-rw-r--r-- | media-libs/libxmlbird/Manifest | 5 | ||||
-rw-r--r-- | media-libs/libxmlbird/files/libxmlbird-1.2.0-configure-valac.patch | 62 | ||||
-rw-r--r-- | media-libs/libxmlbird/files/libxmlbird-1.2.0-libdir.patch | 159 | ||||
-rw-r--r-- | media-libs/libxmlbird/libxmlbird-1.2.0.ebuild | 61 | ||||
-rw-r--r-- | media-libs/libxmlbird/metadata.xml | 11 |
5 files changed, 0 insertions, 298 deletions
diff --git a/media-libs/libxmlbird/Manifest b/media-libs/libxmlbird/Manifest deleted file mode 100644 index 1160456d4c76..000000000000 --- a/media-libs/libxmlbird/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX libxmlbird-1.2.0-configure-valac.patch 1789 BLAKE2B 3c073ca4e985e2037f8b7775a0276ff32a1bad71550b4d4ab78ee508492e06e6f040c2cc4ab7507d157c44ae67b17a7a46c066347a1894520d567de8b92a4f5c SHA512 b3b3642b3b0a9c3c18ccdeddd67b08078473ccf4db6de6e33b41c84ef119b13e25034e2c77e958df5e9ca93eb189b89c3b542a58f2e63d039438a21ef6c19d66 -AUX libxmlbird-1.2.0-libdir.patch 7266 BLAKE2B dbed29bdfae04523e0872433f7cff41e56e7478fccb58effa3ba386a04ba853c637bbc10e904994a0f420103c5dc2371712aa33cf891ff935b9af6ccb07b6a24 SHA512 a879ca5fc70be9a9a3baa7311032b166bc88e6f655e195b57447c665fbe3241dc48235a0f849d9fed4542e09937b150cb7e93f75906668d11fead010318e42a9 -DIST libxmlbird-1.2.0.tar.xz 20004 BLAKE2B da712a82b85188b76943c105cf99f1d366d2dec24c67ce515666a1341dbeef512df62fe5c1407f8b125dd28b662877ca474d422336d789852e822066b5449e3f SHA512 0677004a79194dde87f27387ae1faeb19aa2ecd985664ad4f3f7576d39f71e0d05215c92bb15f3e3f1a4053e27025fd1a4151f1ba12774cfa789d47648097e5b -EBUILD libxmlbird-1.2.0.ebuild 1234 BLAKE2B 1f496007b880311e5bc06f037e583ad8acba61c7d05185e27e90b81d7267143bca1ad6155a3cd8bece7c173a2882170c491ea2e461e238cb1bbc41426f8c72d6 SHA512 cea7cb7fd0615040ef6386959913e4fe9634f6dcb8eee4b0fe98514ca7bb220bd9b14acc4bef3ec044e9639cbdeeab85862100d9f2f8b89779e0dd33be39c5e6 -MISC metadata.xml 351 BLAKE2B bf15ddb7c39336982fa14d3de2aa0043bda64382be7a2b0ba6154839fcef9569c2b6c41d92fdff90abb87c0d7c9b0383e35d5aa402f760ed4feeff0601575bd9 SHA512 9538a6f758475b5381770ba633843b88a4d1b5e780d6822faca6e1c0f576c0e49d1eb44f152b08a89eb092adbc29541b6736362d1ac8c804a8e7f66dc4b69496 diff --git a/media-libs/libxmlbird/files/libxmlbird-1.2.0-configure-valac.patch b/media-libs/libxmlbird/files/libxmlbird-1.2.0-configure-valac.patch deleted file mode 100644 index 121d6fd68de8..000000000000 --- a/media-libs/libxmlbird/files/libxmlbird-1.2.0-configure-valac.patch +++ /dev/null @@ -1,62 +0,0 @@ -https://github.com/johanmattssonm/xmlbird/pull/5 - -From 67864656d7446b067a388c6fd2f059322d7047f0 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 17 May 2016 17:00:05 -0400 -Subject: [PATCH] configure/test: respect --valac option - -Make sure we don't still test `valac` when the compiler has been set to -a specific version/path. ---- - configure | 6 +++--- - scripts/tests.py | 4 ++-- - 2 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/configure b/configure -index f80559f..4bbd9d5 100755 ---- a/configure -+++ b/configure -@@ -44,8 +44,8 @@ def test_library_version (lib): - process.communicate()[0] - return process.returncode == 0 - --def configure (): -- if not test_program_version ("valac", 0, 16, 0): -+def configure(valac): -+ if not test_program_version(valac, 0, 16, 0): - print (FAIL + "valac is too old." + ENDC) - exit (1) - -@@ -105,7 +105,7 @@ if not options.nonnull: - else: - options.nonnull = True - --configure() -+configure(options.valac) - - configfile.write_compile_parameters(options.prefix, - options.dest, -diff --git a/scripts/tests.py b/scripts/tests.py -index 7281e05..88483f1 100644 ---- a/scripts/tests.py -+++ b/scripts/tests.py -@@ -1,6 +1,6 @@ - #!/usr/bin/python3 - import subprocess --from scripts.config import PREFIX -+from scripts.config import (PREFIX, VALAC) - from scripts.run import run - from scripts.version import LIBXMLBIRD_SO_VERSION - -@@ -32,7 +32,7 @@ def build_tests(): - run ("mkdir -p build/tests"); - - for test in tests: -- run ("valac --ccode --pkg=posix --pkg=xmlbird --vapidir=./build " -+ run (VALAC + " --ccode --pkg=posix --pkg=xmlbird --vapidir=./build " - + "--directory=./build tests/" + test + ".vala tests/Test.vala"); - - run ("""gcc -fPIC -c \ --- -2.8.2 - diff --git a/media-libs/libxmlbird/files/libxmlbird-1.2.0-libdir.patch b/media-libs/libxmlbird/files/libxmlbird-1.2.0-libdir.patch deleted file mode 100644 index ca47ba35d5d6..000000000000 --- a/media-libs/libxmlbird/files/libxmlbird-1.2.0-libdir.patch +++ /dev/null @@ -1,159 +0,0 @@ -From 661c84d232e8d22978dd0220f7860b149c19f2e4 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Tue, 17 May 2016 17:37:53 -0400 -Subject: [PATCH] configure: respect libdir at build time - -The xmlbird.pc file encodes the libdir in it, so make sure we have it -at configure & build time. That means moving the flag from install to -configure and the config module. - -Also clean up the code a bit so `--libdir lib64` doesn't break things. -It previously assumed that the argument always had a leading slash. ---- - configure | 19 ++++++++++++++++++- - install.py | 39 +++++++++++---------------------------- - scripts/configfile.py | 3 ++- - scripts/pkgconfig.py | 2 +- - 4 files changed, 32 insertions(+), 31 deletions(-) - -diff --git a/configure b/configure -index 4bbd9d5..ed64f66 100755 ---- a/configure -+++ b/configure -@@ -51,6 +51,7 @@ def configure(valac): - - parser = OptionParser() - parser.add_option('-p', '--prefix', dest='prefix', help='Install prefix', metavar='PREFIX') -+parser.add_option('-l', '--libdir', dest='libdir', help='path to directory for shared libraries (lib or lib64).', metavar='LIBDIR') - parser.add_option('-d', '--dest', dest='dest', help='Install to this directory', metavar='DEST') - parser.add_option('-c', '--cc', dest='cc', help='C compiler', metavar='CC') - parser.add_option('-v', '--valac', dest='valac', help='Vala compiler', metavar='VALAC') -@@ -93,7 +94,22 @@ if not options.prefix: - options.prefix = '${DESTDIR}${PREFIX}' - else: - options.prefix = '/usr' -- -+ -+if not options.libdir: -+ if platform.dist()[0] == 'Ubuntu' or platform.dist()[0] == 'Debian': -+ process = subprocess.Popen(['dpkg-architecture', '-qDEB_HOST_MULTIARCH'], stdout=subprocess.PIPE) -+ out, err = process.communicate() -+ options.libdir = 'lib/' + out.decode('UTF-8').rstrip('\n') -+ else: -+ p = platform.machine() -+ if p == 'i386' or p == 's390' or p == 'ppc' or p == 'armv7hl': -+ options.libdir = 'lib' -+ elif p == 'x86_64' or p == 's390x' or p == 'ppc64': -+ options.libdir = 'lib64' -+ else: -+ options.libdir = 'lib' -+options.libdir = '/' + options.libdir.lstrip('/') -+ - if not options.dest: - options.dest = '' - if not options.cc: -@@ -108,6 +124,7 @@ else: - configure(options.valac) - - configfile.write_compile_parameters(options.prefix, -+ options.libdir, - options.dest, - options.cc, - options.valac, -diff --git a/install.py b/install.py -index d3d3007..d8b995b 100755 ---- a/install.py -+++ b/install.py -@@ -62,7 +62,6 @@ def link (dir, file, linkname): - run ('cd ' + dest + prefix + dir + ' && ln -sf ' + file + ' ' + linkname) - - parser = OptionParser() --parser.add_option ("-l", "--libdir", dest="libdir", help="path to directory for shared libraries (lib or lib64).") - parser.add_option ("-d", "--dest", dest="dest", help="install to this directory", metavar="DEST") - - (options, args) = parser.parse_args() -@@ -73,40 +72,24 @@ if not options.dest: - prefix = config.PREFIX - dest = options.dest - --if not options.libdir: -- if platform.dist()[0] == 'Ubuntu' or platform.dist()[0] == 'Debian': -- process = subprocess.Popen(['dpkg-architecture', '-qDEB_HOST_MULTIARCH'], stdout=subprocess.PIPE) -- out, err = process.communicate() -- libdir = '/lib/' + out.decode('UTF-8').rstrip ('\n') -- else: -- p = platform.machine() -- if p == 'i386' or p == 's390' or p == 'ppc' or p == 'armv7hl': -- libdir = '/lib' -- elif p == 'x86_64' or p == 's390x' or p == 'ppc64': -- libdir = '/lib64' -- else: -- libdir = '/lib' --else: -- libdir = options.libdir -- - if "openbsd" in sys.platform: -- install ('build/bin/libxmlbird.so.' + '${LIBxmlbird_VERSION}', '/lib', 644) -+ install ('build/bin/libxmlbird.so.' + '${LIBxmlbird_VERSION}', config.LIBDIR, 644) - elif os.path.isfile ('build/bin/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION): -- install ('build/bin/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, libdir, 644) -- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR) -- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so') -+ install ('build/bin/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, config.LIBDIR, 644) -+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR) -+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so') - elif os.path.isfile ('build/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION): -- install ('build/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, libdir, 644) -- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR) -- link (libdir, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so') -+ install ('build/libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, config.LIBDIR, 644) -+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION_MAJOR) -+ link (config.LIBDIR, 'libxmlbird.so.' + version.LIBXMLBIRD_SO_VERSION, ' libxmlbird.so') - elif os.path.isfile ('build/bin/libxmlbird.' + version.LIBXMLBIRD_SO_VERSION + '.dylib'): -- install ('build/bin/libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', libdir, 644) -- link (libdir, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib.' + version.LIBXMLBIRD_SO_VERSION_MAJOR) -- link (libdir, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib') -+ install ('build/bin/libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', config.LIBDIR, 644) -+ link (config.LIBDIR, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib.' + version.LIBXMLBIRD_SO_VERSION_MAJOR) -+ link (config.LIBDIR, 'libxmlbird-' + version.LIBXMLBIRD_SO_VERSION + '.dylib', ' libxmlbird.dylib') - else: - print ("Can't find libxmlbird.") - exit (1) - - install ('build/xmlbird/xmlbird.h', '/include', 644) - install ('build/xmlbird.vapi', '/share/vala/vapi', 644) --install ('build/xmlbird.pc', libdir + '/pkgconfig', 644) -+install ('build/xmlbird.pc', config.LIBDIR + '/pkgconfig', 644) -diff --git a/scripts/configfile.py b/scripts/configfile.py -index 71c1e20..4a88585 100755 ---- a/scripts/configfile.py -+++ b/scripts/configfile.py -@@ -1,10 +1,11 @@ - #!/usr/bin/python3 - --def write_compile_parameters (prefix, dest, cc, valac, non_null, -+def write_compile_parameters (prefix, libdir, dest, cc, valac, non_null, - valacflags, cflags, ldflags): - f = open('./scripts/config.py', 'w+') - f.write("#!/usr/bin/python3\n") - f.write("PREFIX = \"" + prefix + "\"\n") -+ f.write("LIBDIR = \"" + libdir + "\"\n") - f.write("DEST = \"" + dest + "\"\n") - f.write("CC = \"" + cc + "\"\n") - f.write("VALAC = \"" + valac + "\"\n") -diff --git a/scripts/pkgconfig.py b/scripts/pkgconfig.py -index c080234..c79c413 100644 ---- a/scripts/pkgconfig.py -+++ b/scripts/pkgconfig.py -@@ -6,7 +6,7 @@ def generate_pkg_config_file(): - f.write("prefix=" + config.PREFIX + "\n") - f.write("""exec_prefix=${prefix} - includedir=${prefix}/include --libdir=${exec_prefix}/lib -+libdir=${exec_prefix}""" + config.LIBDIR + """ - - Name: xmlbird - Description: XML parser --- -2.8.2 - diff --git a/media-libs/libxmlbird/libxmlbird-1.2.0.ebuild b/media-libs/libxmlbird/libxmlbird-1.2.0.ebuild deleted file mode 100644 index 67129e1dcdb1..000000000000 --- a/media-libs/libxmlbird/libxmlbird-1.2.0.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -PYTHON_COMPAT=( python3_6 ) - -inherit python-any-r1 vala toolchain-funcs multilib eutils multiprocessing - -DESCRIPTION="XML parser written in Vala" -HOMEPAGE="https://birdfont.org/xmlbird.php" -SRC_URI="https://birdfont.org/xmlbird-releases/${P}.tar.xz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -# The test build logic needs work. Doesn't respect compiler settings. -RESTRICT="test" - -DEPEND="${PYTHON_DEPS} - $(python_gen_any_dep 'dev-python/doit[${PYTHON_USEDEP}]')" - -src_prepare() { - vala_src_prepare - - epatch "${FILESDIR}"/${PN}-1.2.0-configure-valac.patch - epatch "${FILESDIR}"/${PN}-1.2.0-libdir.patch - - sed -i \ - -e "s:pkg-config:$(tc-getPKG_CONFIG):" \ - configure dodo.py || die - sed -i \ - -e '/tests.build_tests/d' \ - build.py || die -} - -v() { - echo "$@" - "$@" || die -} - -src_configure() { - v ./configure \ - --prefix "${EPREFIX}/usr" \ - --libdir "$(get_libdir)" \ - --valac "${VALAC}" \ - --cc "$(tc-getCC)" \ - --cflags "${CFLAGS} ${CPPFLAGS}" \ - --ldflags "${LDFLAGS}" -} - -src_compile() { - v doit run -n $(makeopts_jobs) -} - -src_install() { - v ./install.py --dest "${D}" - dodoc NEWS README.md -} diff --git a/media-libs/libxmlbird/metadata.xml b/media-libs/libxmlbird/metadata.xml deleted file mode 100644 index 6cbe76d4b07f..000000000000 --- a/media-libs/libxmlbird/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>fonts@gentoo.org</email> -</maintainer> -<upstream> - <bugs-to>https://birdfont.org/bugtracker/</bugs-to> - <remote-id type="github">johanmattssonm/xmlbird</remote-id> -</upstream> -</pkgmetadata> |