diff options
| author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-29 20:36:40 +0000 |
|---|---|---|
| committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-29 20:37:13 +0000 |
| commit | a350c472095e13c1ca27a7b04d601a0fdb13101e (patch) | |
| tree | f9a54e80171cadb3144971c94c853cfd3186ed91 /dev-util/source-highlight/source-highlight-3.1.9.ebuild | |
| parent | d916d8f260fc8978bf83db13b830313139872a87 (diff) | |
| download | gentoo-a350c472095e13c1ca27a7b04d601a0fdb13101e.tar.gz gentoo-a350c472095e13c1ca27a7b04d601a0fdb13101e.tar.bz2 gentoo-a350c472095e13c1ca27a7b04d601a0fdb13101e.zip | |
dev-util/source-highlight: bump up tu 3.1.9
Closes: https://bugs.gentoo.org/683402
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util/source-highlight/source-highlight-3.1.9.ebuild')
| -rw-r--r-- | dev-util/source-highlight/source-highlight-3.1.9.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/source-highlight/source-highlight-3.1.9.ebuild b/dev-util/source-highlight/source-highlight-3.1.9.ebuild new file mode 100644 index 000000000000..1b8ae59a6d79 --- /dev/null +++ b/dev-util/source-highlight/source-highlight-3.1.9.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 flag-o-matic + +DESCRIPTION="Generate highlighted source code as an (x)html document" +HOMEPAGE="https://www.gnu.org/software/src-highlite/source-highlight.html" +SRC_URI="mirror://gnu/src-highlite/${P}.tar.gz" +LICENSE="GPL-3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris" +SLOT="0" +IUSE="doc static-libs" + +RDEPEND=">=dev-libs/boost-1.62.0:=[threads] + dev-util/ctags" +DEPEND="${RDEPEND}" +BDEPEND="" + +src_configure() { + # required as rev-dep of dev-libs/boost-1.62.0 + # https://wiki.gentoo.org/wiki/Project:C%2B%2B/Maintaining_ABI + append-cxxflags -std=c++14 + + econf \ + --with-boost="${EPREFIX}/usr" \ + --with-boost-regex="boost_regex" \ + --without-bash-completion \ + $(use_enable static-libs static) +} + +src_install () { + use doc && local HTML_DOCS=( doc/*.{html,css,java} ) + default + + # That's not how we want it + rm -rf "${ED%/}"/usr/share/{aclocal,doc} || die + + # package provides .pc file + find "${D}" -name '*.la' -delete || die + + dobashcomp completion/source-highlight +} + +src_test() { + export LD_LIBRARY_PATH="${S}/lib/srchilite/.libs/" + # upstream uses the same temporary filenames in numerous places + # see https://bugs.gentoo.org/635100 + emake -j1 check +} |
