diff --git a/dev-util/global/Manifest b/dev-util/global/Manifest index 529e2143c33ca..d6b2127638fff 100644 --- a/dev-util/global/Manifest +++ b/dev-util/global/Manifest @@ -1 +1,2 @@ DIST global-6.6.14.tar.gz 3012014 BLAKE2B 92972098f0aa4ffa242725d1604138b6898ee4742aacb8334b84f1ad8970a77e374c08da05b38acd75b43f13bf828a4765106df2c3db5b67bea2c0de69466213 SHA512 295b58cdbce3aca1a1cb47f87f6127d31860e07ba6003810f418dd1eff2e389ac78bcdb131d18e48d935cd42351eee7c5474fc2ff3bcd783a48a4ef178e5cad6 +DIST global-6.6.15.tar.gz 3023804 BLAKE2B 5816f1fb3fba045320a3f14cfe21a49258c5f30a2f7203c475dd658acb55e3ffd538ebb815a0eef55ab0d6b61d005055205a0f5604850a0b64bd7985194981e8 SHA512 7ce0343dde953244a0a24637165803bf06aa80bbb9be856854bc7d36243c0729dc94aeadeda95ee1472fe46885ecc1acbb96140cedfbaf05631bf72d67e0b774 diff --git a/dev-util/global/global-6.6.15.ebuild b/dev-util/global/global-6.6.15.ebuild new file mode 100644 index 0000000000000..1ea8470a6e404 --- /dev/null +++ b/dev-util/global/global-6.6.15.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..14} ) +inherit autotools elisp-common flag-o-matic python-single-r1 + +DESCRIPTION="Tag system to find an object location in various sources" +HOMEPAGE="https://www.gnu.org/software/global/global.html" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc emacs" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-libs/libltdl + dev-db/sqlite + sys-libs/ncurses + $(python_gen_cond_dep ' + dev-python/pygments[${PYTHON_USEDEP}] + ') + emacs? ( >=app-editors/emacs-23.1:* ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( + app-text/texi2html + app-text/texlive-core + sys-apps/texinfo + ) +" + +SITEFILE="50gtags-gentoo.el" + +PATCHES=( + "${FILESDIR}/${PN}-6.2.9-tinfo.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # bug #943798 + append-cflags -std=gnu17 + + local myeconfargs=( + --with-python-interpreter="${PYTHON}" + --with-sqlite3 # avoid using bundled copy + $(use_with emacs lispdir "${SITELISP}/${PN}") + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + if use doc; then + texi2pdf -q -o doc/global.pdf doc/global.texi || die + texi2html -o doc/global.html doc/global.texi || die + fi + + if use emacs; then + elisp-compile *.el + fi + + emake +} + +src_install() { + default + + rm -rf "${ED}"/var/lib || die + + insinto /etc + doins gtags.conf + + insinto /usr/share/vim/vimfiles/plugin + doins gtags.vim + + if use emacs; then + elisp-install ${PN} *.{el,elc} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + if use doc; then + # doc/global.pdf is generated if tex executable (e.g. /usr/bin/tex) is available. + [[ -f doc/global.pdf ]] && DOCS+=( doc/global.pdf ) + fi + + find "${ED}" -name '*.la' -type f -delete || die +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +}