52 lines
1.1 KiB
Bash
52 lines
1.1 KiB
Bash
|
# By eroen, 2013
|
||
|
# Distributed under the terms of the ISC licence
|
||
|
# $Header: $
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit eutils toolchain-funcs versionator git-r3
|
||
|
|
||
|
DESCRIPTION="A keyboard-centric VTE-based terminal"
|
||
|
HOMEPAGE="https://github.com/thestinger/termite"
|
||
|
EGIT_REPO_URI="git://github.com/thestinger/termite.git"
|
||
|
if [[ ${PV} != 999? ]]; then
|
||
|
EGIT_COMMIT=v${PV}
|
||
|
fi
|
||
|
|
||
|
LICENSE="LGPL-2+ MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
HDEPEND=""
|
||
|
LIBDEPEND=">=x11-libs/gtk+-3.0
|
||
|
>=x11-libs/vte-0.34:2.90[termite-patch(-)]"
|
||
|
DEPEND="${LIBDEPEND}"
|
||
|
RDEPEND="${LIBDEPEND}"
|
||
|
[[ ${EAPI} == *-hdepend ]] || DEPEND+=" ${HDEPEND}"
|
||
|
|
||
|
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
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -e '/PREFIX/s:/usr/local:/usr:' \
|
||
|
-e 's/-O3//g' \
|
||
|
-e '/LDFLAGS/s/-s//' \
|
||
|
-i Makefile || die
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
dodoc config
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog
|
||
|
elog "Termite looks for a config file ~/.config/termite/config"
|
||
|
elog "An example config can be found in ${ROOT}usr/share/doc/${PF}/"
|
||
|
}
|