commit: cc774af9f094061f7eff6f40c3f33d5ea6558b49 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> AuthorDate: Mon Jan 23 02:29:41 2023 +0000 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> CommitDate: Mon Jan 23 02:29:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc774af9
dev-util/astyle: update EAPI 6 -> 8 - also remove obsolete version change message Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> dev-util/astyle/astyle-3.1-r2.ebuild | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/dev-util/astyle/astyle-3.1-r2.ebuild b/dev-util/astyle/astyle-3.1-r2.ebuild index 7f30eabb7a36..82c533c6d7d1 100644 --- a/dev-util/astyle/astyle-3.1-r2.ebuild +++ b/dev-util/astyle/astyle-3.1-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 -inherit flag-o-matic toolchain-funcs versionator java-pkg-opt-2 +inherit flag-o-matic toolchain-funcs java-pkg-opt-2 DESCRIPTION="Artistic Style is a re-indenter and reformatter for C++, C and Java source code" HOMEPAGE="http://astyle.sourceforge.net/" @@ -57,11 +57,11 @@ src_install() { local libdestdir="/usr/$(get_libdir)" dolib.so "${libastylename}" - dosym "${libastylename}" "${libdestdir}/lib${PN}.so.$(get_major_version)" + dosym "${libastylename}" "${libdestdir}/lib${PN}.so.$(ver_cut 1)" dosym "${libastylename}" "${libdestdir}/lib${PN}.so" if use java ; then dolib.so "${libastylejname}" - dosym "${libastylejname}" "${libdestdir}/lib${PN}j.so.$(get_major_version)" + dosym "${libastylejname}" "${libdestdir}/lib${PN}j.so.$(ver_cut 1)" dosym "${libastylejname}" "${libdestdir}/lib${PN}j.so" fi if use static-libs ; then @@ -76,14 +76,3 @@ src_install() { local HTML_DOCS=( doc/. ) einstalldocs } - -pkg_postinst() { - if [[ -n "$REPLACING_VERSIONS" && "$(get_major_version $REPLACING_VERSIONS)" -lt 3 ]]; then - elog "Artistic Style 3.0 introduces new configuration verbiage more fitting" - elog "for modern use. Some options that were valid in 2.06 or older are now" - elog "deprecated. For more information, consult astyle's release notes at" - elog "http://astyle.sourceforge.net/news.html. To view offline, see:" - elog - elog "${EROOT%/}/usr/share/doc/${P}/html" - fi -}
