diff options
author | 2019-08-27 22:54:27 +0200 | |
---|---|---|
committer | 2019-08-27 22:54:27 +0200 | |
commit | fa587ec9aea581f163c1d13868442242f6c4db17 (patch) | |
tree | dab850afd0dc2f6a23f20abe7a25df20180f2b22 /x11-terms | |
parent | vte-0.54.4 from gentoo + vte-ng (diff) | |
download | eroen-fa587ec9aea581f163c1d13868442242f6c4db17.tar.gz eroen-fa587ec9aea581f163c1d13868442242f6c4db17.tar.bz2 eroen-fa587ec9aea581f163c1d13868442242f6c4db17.zip |
termite-15 - bump
Signed-off-by: Erik Moen <eroen-overlay@occam.eroen.eu>
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/termite/termite-15.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/x11-terms/termite/termite-15.ebuild b/x11-terms/termite/termite-15.ebuild new file mode 100644 index 0000000..710a16e --- /dev/null +++ b/x11-terms/termite/termite-15.ebuild @@ -0,0 +1,63 @@ +# By eroen, 2013-2019 +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. + +EAPI=6 + +inherit eutils toolchain-funcs versionator +if [[ 9999 == $PV ]]; then + inherit git-r3 +else + # Submodules :-( + #SRC_URI="https://github.com/thestinger/termite/archive/v$PV.tar.gz -> $P.tar.gz" + inherit git-r3 + EGIT_COMMIT=v$PV + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="A keyboard-centric VTE-based terminal" +HOMEPAGE="https://github.com/thestinger/termite" +EGIT_REPO_URI="https://github.com/thestinger/termite.git" + +LICENSE="LGPL-2+ MIT" +SLOT="0" +IUSE="" + +RDEPEND="dev-libs/libpcre2 + >=x11-libs/gtk+-3.0 + >=x11-libs/vte-0.43.2:2.91[termite-patch(-)]" +DEPEND="${RDEPEND}" + +pkg_pretend() { + if ! version_is_at_least 4.7 $(gcc-version); then + eerror "${PN} passes -std=c++11 to \${CXX} and requires a version" + eerror "of gcc newer than 4.7.0" + fi +} + +pkg_setup() { + # Makefile prepends -O3 + CXXFLAGS="-O0 ${CXXFLAGS}" +} + +src_prepare() { + default + sed -e "s/^VERSION = .*$/VERSION = v${PV}/" \ + -i Makefile || die +} + +src_compile() { + emake LDFLAGS="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + dodoc README* config +} + +pkg_postinst() { + elog + elog "Termite looks for a config file ~/.config/termite/config" + elog "An example config can be found in ${EROOT}usr/share/doc/${PF}/" +} |