commit:     aacc8bb1a7489f8bd5718770f4d1a35689bd7bf9
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 20 15:27:28 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 20 15:27:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aacc8bb1

x11-misc/shared-mime-info: drop 2.2-r1, 2.3-r2, EAPI=7--

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 x11-misc/shared-mime-info/Manifest                 |   3 -
 .../shared-mime-info-2.2-r1.ebuild                 |  93 -------------------
 .../shared-mime-info-2.3-r2.ebuild                 | 100 ---------------------
 3 files changed, 196 deletions(-)

diff --git a/x11-misc/shared-mime-info/Manifest 
b/x11-misc/shared-mime-info/Manifest
index 58da0a861bb0..b27afce55914 100644
--- a/x11-misc/shared-mime-info/Manifest
+++ b/x11-misc/shared-mime-info/Manifest
@@ -1,5 +1,2 @@
-DIST shared-mime-info-2.2.tar.gz 7064139 BLAKE2B 
5e791893a60d64a8a1d421c1fabb5e214c6e34ae975d232a9d695b998e8e9aafb6449e858fd845feb120e170bf7c77f70c1fc23e3d4cf8e7c49c6e92418cab96
 SHA512 
490d96daf4214ab6ac537761b67f3ff4716b95d7ea3fedd2e2ab7b0b02d946acad49790a25efcb5e949551dc4c39ba08911e59f06b198b61dcb1bc44799a2b2e
-DIST shared-mime-info-2.3.tar.bz2 6643480 BLAKE2B 
2a3adc0568d1be5a17e5a1533f3c4620c6f9d97069ad9e0a0b26ac241c7b14f7d3b9200534df7e1c2295a561d5e049ce8edf8a1e96d2f4e2040508545172a351
 SHA512 
f1959933e93373ee6939b289d0c3c35d527ce6803865558e4a8bcb5a0183df2fc1148bbf58bfe9a97342e7125f2e0e39ac5dd3bae998510396d9b6c96a330762
 DIST shared-mime-info-2.4.tar.bz2 7096347 BLAKE2B 
25ff086e4962f5ab0cb2b7155df02be4af7af63dd0267500b2b12b802680bbae04b9ed252ef5a004d0175f6b48956c5e4b9738af9ab5d2fa76a7a0b6eac067ad
 SHA512 
712f414e80919bf2a0f5083ced44c54a350948a526850466a6e9f35365dcfd97fad8bcdbb29945de2715a8f9b70a108e931c8500209a4d6e3dddf97af02771cb
 DIST xdgmime-179296748e92bd91bf531656632a1056307fb7b7.tar.bz2 28123 BLAKE2B 
ea107dba0819027e4a0a486db00e76f50a4e32e8e84f366b81490e213456e2c7e1c4a92cc4f92173dd6f94f257455bdcb77e3eb7d0ce8fb699c948d2d5b01f0d
 SHA512 
efccff2672efb3ff0e44e83cfbaf6e2b926146e4a9d6132b14e2d7a88d602af340b3948793306ce5f720ac8b09e5d37d3b356a0cc269e8240b382558c9a3cf10
-DIST xdgmime-92f6a09fda2b23c2ab95cede8eb0612ca96bd0f7.tar.gz 32703 BLAKE2B 
865ff57c566b60fb2bd6cb37e259800ee72fb4b9f2d135db46e9a40206946677a7b50bfb8f13d9ce1493bac972e8a5230d7caa833733f3a8d8631e844a648436
 SHA512 
90abe20483d5ae2131d18740fffbc57c94470be99e9ea1b04e13bffaf3dda4aa9145cb92bb4defe0a655c0bdbd630aaa325e7a9095b9599faebb751699b9cdd8

diff --git a/x11-misc/shared-mime-info/shared-mime-info-2.2-r1.ebuild 
b/x11-misc/shared-mime-info/shared-mime-info-2.2-r1.ebuild
deleted file mode 100644
index 4e4a8cc2e02e..000000000000
--- a/x11-misc/shared-mime-info/shared-mime-info-2.2-r1.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit meson toolchain-funcs xdg-utils
-
-# Keep an eye on 
https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/25!
-# xdgmime is used for tests but doesn't make releases nowadays; do what
-# Fedora does and use a snapshot so we can run the test suite.
-MY_XDGMIME_COMMIT="92f6a09fda2b23c2ab95cede8eb0612ca96bd0f7"
-DESCRIPTION="The Shared MIME-info Database specification"
-HOMEPAGE="https://gitlab.freedesktop.org/xdg/shared-mime-info";
-SRC_URI="https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${PV}/${P}.tar.gz";
-SRC_URI+=" test? ( 
https://gitlab.freedesktop.org/xdg/xdgmime/-/archive/${MY_XDGMIME_COMMIT}/xdgmime-${MY_XDGMIME_COMMIT}.tar.gz
 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos 
~x64-solaris"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
-       app-text/docbook-xml-dtd:4.1.2
-       app-text/xmlto
-       sys-devel/gettext
-       virtual/pkgconfig
-"
-RDEPEND="
-       dev-libs/glib:2
-       dev-libs/libxml2:=
-"
-DEPEND="${RDEPEND}"
-
-DOCS=( HACKING.md NEWS README.md )
-
-src_prepare() {
-       default
-
-       if use test ; then
-               # Drop empty dir (it's a submodule in upstream git repo)
-               rm -r "${S}"/xdgmime || die
-               # Lead Meson to our snapshot
-               ln -s "${WORKDIR}"/xdgmime-${MY_XDGMIME_COMMIT} xdgmime || die
-               # Don't break parallel make
-               sed -i -e 's:make:$(MAKE):' xdgmime/Makefile || die
-       fi
-}
-
-src_configure() {
-       # We have to trick Meson into thinking it's there now so that
-       # we can run meson then emake to build xdgmime later, rather than
-       # building before running meson which would mean doing something
-       # unexpected in src_configure.
-       if use test ; then
-               # Paths from 
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/meson.build#L29
-               touch xdgmime/src/{print,test}-mime{,-data} || die
-               chmod +x xdgmime/src/{print,test}-mime{,-data} || die
-       fi
-
-       local emesonargs=(
-               -Dbuild-tools=true
-               -Dupdate-mimedb=false
-       )
-
-       meson_src_configure
-}
-
-src_compile() {
-       if use test ; then
-               tc-export CC
-
-               # xdgmime only has a homebrew Makefile
-               emake -C xdgmime
-       fi
-
-       meson_src_compile
-}
-
-src_install() {
-       meson_src_install
-
-       # in prefix, install an env.d entry such that prefix patch is used/added
-       if use prefix; then
-               echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share\"" > 
"${T}"/50mimeinfo || die
-               doenvd "${T}"/50mimeinfo
-       fi
-}
-
-pkg_postinst() {
-       use prefix && export XDG_DATA_DIRS="${EPREFIX}"/usr/share
-       xdg_mimeinfo_database_update
-}

diff --git a/x11-misc/shared-mime-info/shared-mime-info-2.3-r2.ebuild 
b/x11-misc/shared-mime-info/shared-mime-info-2.3-r2.ebuild
deleted file mode 100644
index 5bd8ef4a0754..000000000000
--- a/x11-misc/shared-mime-info/shared-mime-info-2.3-r2.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit meson xdg-utils
-
-# xdgmime is used for tests but doesn't make releases nowadays; do what
-# Fedora does and use a snapshot so we can run the test suite.
-MY_XDGMIME_COMMIT="179296748e92bd91bf531656632a1056307fb7b7"
-DESCRIPTION="The Shared MIME-info Database specification"
-HOMEPAGE="https://gitlab.freedesktop.org/xdg/shared-mime-info";
-SRC_URI="https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${PV}/${P}.tar.bz2";
-SRC_URI+=" test? ( 
https://gitlab.freedesktop.org/xdg/xdgmime/-/archive/${MY_XDGMIME_COMMIT}/xdgmime-${MY_XDGMIME_COMMIT}.tar.bz2
 )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
-       app-text/docbook-xml-dtd:4.1.2
-       app-text/xmlto
-       sys-devel/gettext
-       virtual/pkgconfig
-"
-RDEPEND="
-       dev-libs/glib:2
-       dev-libs/libxml2:=
-"
-DEPEND="${RDEPEND}"
-
-DOCS=( HACKING.md NEWS README.md )
-
-PATCHES=(
-       "${FILESDIR}"/${P}-clang-string-literal.patch
-       "${FILESDIR}"/${P}-fsync-detection.patch
-       "${FILESDIR}"/${P}-wformat.patch
-)
-
-src_prepare() {
-       default
-
-       if use test ; then
-               # Drop empty dir (it's a submodule in upstream git repo)
-               rm -r "${S}"/xdgmime || die
-               # Lead Meson to our snapshot
-               mkdir "${WORKDIR}"/xdgmime_build || die
-               ln -s "${WORKDIR}"/xdgmime_build xdgmime || die
-               # Don't break parallel make
-               #sed -i -e 's:make:$(MAKE):' xdgmime/Makefile || die
-       fi
-}
-
-src_configure() {
-       # We have to trick Meson into thinking it's there now so that
-       # we can run meson then emake to build xdgmime later, rather than
-       # building before running meson which would mean doing something
-       # unexpected in src_configure.
-       if use test ; then
-               # Paths from 
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/meson.build#L29
-               mkdir xdgmime/src || die
-               touch xdgmime/src/{print,test}-mime{,-data} || die
-               chmod +x xdgmime/src/{print,test}-mime{,-data} || die
-
-               BUILD_DIR="${WORKDIR}"/xdgmime_build 
EMESON_SOURCE="${WORKDIR}"/xdgmime-${MY_XDGMIME_COMMIT} meson_src_configure
-       fi
-
-       local emesonargs=(
-               -Dbuild-tools=true
-               -Dupdate-mimedb=false
-               $(meson_use test build-tests)
-       )
-
-       meson_src_configure
-}
-
-src_compile() {
-       if use test ; then
-               meson_src_compile -C "${WORKDIR}"/xdgmime_build
-       fi
-
-       meson_src_compile
-}
-
-src_install() {
-       meson_src_install
-
-       # in prefix, install an env.d entry such that prefix patch is used/added
-       if use prefix; then
-               echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share\"" > 
"${T}"/50mimeinfo || die
-               doenvd "${T}"/50mimeinfo
-       fi
-}
-
-pkg_postinst() {
-       use prefix && export XDG_DATA_DIRS="${EPREFIX}"/usr/share
-       xdg_mimeinfo_database_update
-}

Reply via email to