2018-01-25 18:53:59 +00:00
|
|
|
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
require alternatives github [ user='universal-ctags' pn='ctags' ]
|
2020-03-20 10:14:06 +00:00
|
|
|
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ]
|
2018-01-25 18:53:59 +00:00
|
|
|
|
|
|
|
SUMMARY="Universal ctags"
|
|
|
|
|
|
|
|
LICENCES="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
2020-03-20 10:14:06 +00:00
|
|
|
MYOPTIONS="
|
|
|
|
json [[ description = [ Add support for JSON format as output ] ]]
|
|
|
|
seccomp [[ description = [ Add support for libseccomp library ] ]]
|
|
|
|
xml
|
|
|
|
yaml [[ description = [ Add support for YAML format as output ] ]]
|
|
|
|
"
|
2018-01-25 18:53:59 +00:00
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
|
|
|
json? ( dev-libs/jansson )
|
2020-03-20 10:14:06 +00:00
|
|
|
seccomp? ( sys-libs/libseccomp )
|
|
|
|
xml? ( dev-libs/libxml2:2.0[>=2.7.7] )
|
2018-01-25 18:53:59 +00:00
|
|
|
yaml? ( dev-libs/libyaml )
|
|
|
|
build:
|
|
|
|
dev-python/docutils
|
|
|
|
virtual/pkg-config
|
|
|
|
"
|
|
|
|
|
2020-03-20 10:14:06 +00:00
|
|
|
# input-encoding-option and output-encoding-option fail as of 20-03-2020
|
|
|
|
RESTRICT="test"
|
|
|
|
|
2018-01-25 18:53:59 +00:00
|
|
|
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
|
|
|
|
'json'
|
2020-03-20 10:14:06 +00:00
|
|
|
'seccomp'
|
2018-01-25 18:53:59 +00:00
|
|
|
'xml'
|
|
|
|
'yaml'
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|