From 627489c51eef5db5e6e4e4d4f5e62f41b6594911 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 25 Jan 2018 19:53:59 +0100 Subject: [PATCH] dev-util/universal-ctags: initial import --- metadata/repository_mask.conf | 1 + .../universal-ctags-scm.exheres-0 | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 packages/dev-util/universal-ctags/universal-ctags-scm.exheres-0 diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf index 7d351a6f..66f36682 100644 --- a/metadata/repository_mask.conf +++ b/metadata/repository_mask.conf @@ -2,6 +2,7 @@ dev-lang/fsharp[~scm] dev-lang/fstar[~scm] dev-python/pytype[~scm] + dev-util/universal-ctags[~scm] games-emulation/gambatte[~scm] games-engines/OpenJK[~scm] games-engines/flare[~scm] diff --git a/packages/dev-util/universal-ctags/universal-ctags-scm.exheres-0 b/packages/dev-util/universal-ctags/universal-ctags-scm.exheres-0 new file mode 100644 index 00000000..097f3fde --- /dev/null +++ b/packages/dev-util/universal-ctags/universal-ctags-scm.exheres-0 @@ -0,0 +1,48 @@ +# Copyright 2018 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require alternatives github [ user='universal-ctags' pn='ctags' ] +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] + +SUMMARY="Universal ctags" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="json xml yaml" + +DEPENDENCIES=" + build+run: + json? ( dev-libs/jansson ) + xml? ( dev-libs/libxml2:2.0 ) + yaml? ( dev-libs/libyaml ) + build: + dev-python/docutils + virtual/pkg-config +" + +DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( + 'json' + 'xml' + 'yaml' +) + +src_prepare() { + # autogen.sh usually runs this + edo ./misc/dist-test-cases > makefiles/test-cases.mak + + autotools_src_prepare +} + +src_install() { + default + + # alternatives collision + edo mv "${IMAGE}"/usr/$(exhost --target)/bin/{ctags,universal-ctags} + edo mv "${IMAGE}"/usr/share/man/man1/{ctags,universal-ctags}.1 + + alternatives_for ctags universal-ctags 500 \ + /usr/$(exhost --target)/bin/ctags universal-ctags \ + /usr/share/man/man1/ctags.1 universal-ctags.1 +} +