From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-util/global/Manifest | 9 +++ dev-util/global/files/50gtags-gentoo.el | 6 ++ dev-util/global/files/global-6.2.9-tinfo.patch | 28 ++++++++ dev-util/global/global-6.3.1.ebuild | 81 ++++++++++++++++++++++ dev-util/global/global-6.5.7.ebuild | 96 ++++++++++++++++++++++++++ dev-util/global/metadata.xml | 18 +++++ 6 files changed, 238 insertions(+) create mode 100644 dev-util/global/Manifest create mode 100644 dev-util/global/files/50gtags-gentoo.el create mode 100644 dev-util/global/files/global-6.2.9-tinfo.patch create mode 100644 dev-util/global/global-6.3.1.ebuild create mode 100644 dev-util/global/global-6.5.7.ebuild create mode 100644 dev-util/global/metadata.xml (limited to 'dev-util/global') diff --git a/dev-util/global/Manifest b/dev-util/global/Manifest new file mode 100644 index 000000000000..75ccebe83746 --- /dev/null +++ b/dev-util/global/Manifest @@ -0,0 +1,9 @@ +AUX 50gtags-gentoo.el 183 SHA256 52531e861595504a3461a483dfc05520acef423932e273cd26461aee66082428 SHA512 5a7b4e3eb4ee7ce479766a01dea5f82ab7499e666130b869c8f61ec9dfa69250b4b98357f6eb3d1b14da0348eb2c7d77ec0146d1e85996254a8fd7eaa3f3ff05 WHIRLPOOL 400021dac347e7954960c2813cbe27fd9b80e7359e08fbd2398c62975e177f6fb39e54b3da9e066adb7cd9f3e3cafa2f9f8fb61da1866bafcef0cf915fe9e44f +AUX global-6.2.9-tinfo.patch 2047 SHA256 251f54adfc44d603eaa99fb40f54d18525d9ab297030a9c3c6de6b843b668be2 SHA512 f5d83716ba2fde29ad5765665d00b4d2a5b4c8d6351cd6ca9d8c375a6c953f795811e156c0cdb28549837c72abbe2c2bef9ad4cb419e7043115c50858b831698 WHIRLPOOL 97ca014947d3ccfbcb00016023c1a6308dcd4edc637f3a0d150367aa9aabc5811d0866f3aea75877f461bfb89703292032796efa8fef6e7a6c698c54cf3fbf04 +DIST global-6.3.1.tar.gz 1369634 SHA256 fb10668ef1a2f63d0730564a36ecae7716aed89c09cc5896cd8c579be4ebae6c SHA512 83becd6cda06f8da17ea0c701bb135523ff48cec73b233d24566387d11a35c0b42f410b62753838e2b364a5a485cac033b4aef1159cc6f4cdeca4a7b6c5bb4d6 WHIRLPOOL 1321e131b267f842b68561f04155c06dc11b0adfe177e83113b1884eb629d8e27844de6421c1613efd2ad7472d51140deb5360a6ad78fd25f50844426314de5c +DIST global-6.5.7.tar.gz 2940567 SHA256 d9c08fa524f9499b54241cb2d72f8a7df01453b6d5e012a63784ded08e3acd32 SHA512 0d33f718839e5e00bdd6d042b415a69c5e1f232d843610870505f8f20635b445810149b1b84ea8b77881f5f64814783ebe3cdcab2f84b8a085223b64293a9045 WHIRLPOOL 0c32bc466652a87661c21bcaee2f2a1b5eee7b3bff5e8f763bd3b1c159daea10c1e3c0f092109d9b92112258f52e88a7bed7eb58923a592013d400b7d6727f4d +EBUILD global-6.3.1.ebuild 1650 SHA256 818714639aa6003b578ced6845c546054c12640be49817e500ac3aaf745dd5a6 SHA512 01664cf063e632aeb4e3008693992674023c46f54f635617841606636cb7d20ae83cda34f67db9b572cf1fbe34bdebbbc99ceff65d52b0041ed144f6ecca741d WHIRLPOOL 4b13e505af704d5c2fffde6110d7ede25019bf98c5396ae301c7911b701c2586879c16da646173bacf79822ba99bcba9fcbcfd889bf0e93683bcc2217414f4e8 +EBUILD global-6.5.7.ebuild 1633 SHA256 d0ec1be0e97f3a3e5b410a56556ad4c64b619487e94229fa72fe6cb8e1ded124 SHA512 99b22b10d0c983872e4db53d158b73ac468b4a5fc289f4da4859c0d1ffced1e0d7b7fccc4d00e3fd7c5dc75be317c4d83c2c2fbb07ee56f9f9427f096cfdbfcc WHIRLPOOL df9ec192750fb13cf504cf2d8b1db4545173dd446cc2f1f78f51b911d304c60d82c1d684e2ac82ce83c515152872df1ededf43b8a2aea4978d92e850548ded09 +MISC ChangeLog 2636 SHA256 dd450c456c8f2711875d1aefc5d5c16687dca9a27bd26298f20f2146ed7a0e23 SHA512 0afdb724de0af2831ce0d4eb715ee8861e45dc44ae2418022ee3a462501ea295e3a4ca0d86926813148663ab036d69d166073c80ac392459f2881230066ccf1b WHIRLPOOL d57b6ecff0b42834ac0bb3c6231cba110ab227837041dea726d393f460a0be3a6761e0ea6e5adbfb674fe4879941a9fa2c3d0a7b99e6e6be93ca8b90e9eda096 +MISC ChangeLog-2015 17778 SHA256 aa8bea940112bb0ee2d431d2633f6385752d4d515b6897f2044329df3a891e66 SHA512 370372df471e10fe99e718bc516dc8f6e788cee330b5d72e8919e1292cf795615361bbb9f4dc68800b55858ab432f2c818f2c675694dcb918106b4e05a6c818d WHIRLPOOL eb5c597b3bee54dc06c4aae58789c1ae7cc440262efdc6e5465824029060e24904dcfd8bfd2bccda6a56b6e2e20187c3ff1c684474e57908fbc43126d27004f7 +MISC metadata.xml 572 SHA256 95dda5fc67bb42c91f347c006963d44be73fa713edda8812c56fd63e4dea474e SHA512 a2ee0b8c3dc85fb2b23b1741dc312928a1a96ec31400e946d526db4a31f825fb49261595e0b59410456e035415a0ad9442b81178f44b66ba53165ef3b5fcf24a WHIRLPOOL f984dd5962f3e72cd8f4c9e4f05a1475cdd42dd8777a360fffd17ce8a8e5fb4938cc6ebf8a5bc1b851e4faff86e540d4b2d9fde51d4df7bf89e25290a6fcd9c9 diff --git a/dev-util/global/files/50gtags-gentoo.el b/dev-util/global/files/50gtags-gentoo.el new file mode 100644 index 000000000000..cd9c5546de91 --- /dev/null +++ b/dev-util/global/files/50gtags-gentoo.el @@ -0,0 +1,6 @@ + +;;; global site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'gtags-mode "gtags" + "Toggle Gtags mode, a minor mode for browsing source code using GLOBAL." t) diff --git a/dev-util/global/files/global-6.2.9-tinfo.patch b/dev-util/global/files/global-6.2.9-tinfo.patch new file mode 100644 index 000000000000..ef247d4abbcb --- /dev/null +++ b/dev-util/global/files/global-6.2.9-tinfo.patch @@ -0,0 +1,28 @@ +diff --git a/m4/check_curses.m4 b/m4/check_curses.m4 +index 14aaec5..dca7c0e 100644 +--- a/m4/check_curses.m4 ++++ b/m4/check_curses.m4 +@@ -229,16 +229,17 @@ AC_DEFUN([AC_NCURSES], [ + ]) + + AC_DEFUN([AC_SEARCH_NCURSES], [ ++ PKG_CHECK_MODULES(NCURSES,ncurses) + AS_MESSAGE(checking "location of ncurses.h file"...) + +- AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include") +- AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses") +- AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, "ncurses on /usr/local") +- AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses") ++ AC_NCURSES(/usr/include, ncurses.h, $NCURSES_LIBS,, "ncurses on /usr/include") ++ AC_NCURSES(/usr/include/ncurses, ncurses.h, $NCURSES_LIBS, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses") ++ AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib $NCURSES_LIBS, -I/usr/local/include, "ncurses on /usr/local") ++ AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses $NCURSES_LIBS, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses") + +- AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses") ++ AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib $NCURSES_LIBS, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses") + +- AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses") ++ AC_NCURSES(/usr/include/ncurses, curses.h, $NCURSES_LIBS, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses") + + dnl + dnl We couldn't find ncurses, try SysV curses diff --git a/dev-util/global/global-6.3.1.ebuild b/dev-util/global/global-6.3.1.ebuild new file mode 100644 index 000000000000..dcefb9fac0a0 --- /dev/null +++ b/dev-util/global/global-6.3.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit autotools elisp-common eutils + +DESCRIPTION="GNU Global is a tag system to find the locations of a specified object 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 ~x86-fbsd" +IUSE="doc emacs vim" + +RDEPEND="|| ( dev-libs/libltdl:0 sys-devel/libtool:2 ) + sys-libs/ncurses + emacs? ( virtual/emacs ) + vim? ( || ( app-editors/vim app-editors/gvim ) )" +DEPEND="${DEPEND} + doc? ( app-text/texi2html sys-apps/texinfo )" + +SITEFILE="50gtags-gentoo.el" + +src_prepare() { + epatch "${FILESDIR}/${PN}-6.2.9-tinfo.patch" + eautoreconf +} + +src_configure() { + econf "$(use_with emacs lispdir "${SITELISP}/${PN}")" +} + +src_compile() { + if use doc; then + texi2pdf -q -o doc/global.pdf doc/global.texi + texi2html -o doc/global.html doc/global.texi + fi + + if use emacs; then + elisp-compile *.el + fi + + emake +} + +src_install() { + emake DESTDIR="${D}" install + + if use doc; then + dohtml doc/global.html + # doc/global.pdf is generated if tex executable (e.g. /usr/bin/tex) is available. + [[ -f doc/global.pdf ]] && dodoc doc/global.pdf + fi + + dodoc AUTHORS FAQ NEWS README THANKS + + insinto /etc + doins gtags.conf + + if use vim; then + insinto /usr/share/vim/vimfiles/plugin + doins gtags.vim + fi + + if use emacs; then + elisp-install ${PN} *.{el,elc} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + prune_libtool_files +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/global/global-6.5.7.ebuild b/dev-util/global/global-6.5.7.ebuild new file mode 100644 index 000000000000..3d6e4cfa2ed2 --- /dev/null +++ b/dev-util/global/global-6.5.7.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools ltprune elisp-common + +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 ~x86-fbsd" +IUSE="doc emacs vim" + +RDEPEND=" + sys-libs/ncurses + emacs? ( virtual/emacs ) + vim? ( || ( + app-editors/vim + app-editors/gvim + ) + ) + || ( + dev-libs/libltdl:0 + sys-devel/libtool:2 + )" + +DEPEND="${DEPEND} + doc? ( + app-text/texi2html + sys-apps/texinfo + )" + +SITEFILE="50gtags-gentoo.el" + +PATCHES=( "${FILESDIR}/${PN}-6.2.9-tinfo.patch" ) + +DOCS=( AUTHORS FAQ NEWS README THANKS ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + "$(use_with emacs lispdir "${SITELISP}/${PN}")" +} + +src_compile() { + if use doc; then + texi2pdf -q -o doc/global.pdf doc/global.texi + texi2html -o doc/global.html doc/global.texi + fi + + if use emacs; then + elisp-compile *.el + fi + + emake +} + +src_install() { + default + + insinto /etc + doins gtags.conf + + if use vim; then + insinto /usr/share/vim/vimfiles/plugin + doins gtags.vim + fi + + 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 + + einstalldocs + prune_libtool_files +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/global/metadata.xml b/dev-util/global/metadata.xml new file mode 100644 index 000000000000..6a4aed9a8e5a --- /dev/null +++ b/dev-util/global/metadata.xml @@ -0,0 +1,18 @@ + + + + + naota@gentoo.org + + + arfrever.fta@gmail.com + Proxy maintainer + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Integrate the GNU GLOBAL source code tag system with Vim + + -- cgit v1.2.3