summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-03-16 16:26:47 +0100
committerJeroen Roovers <jer@gentoo.org>2018-03-16 16:26:47 +0100
commitc30119aab642ca87dd76071f7a1a675424e1f7aa (patch)
tree69570efb638d5d7b5621c5a6d5d7ae623084a0ef /x11-terms
parentx11-misc/dmenu: Versions 4.8 manifest. (diff)
downloadgentoo-c30119aab642ca87dd76071f7a1a675424e1f7aa.tar.gz
gentoo-c30119aab642ca87dd76071f7a1a675424e1f7aa.tar.bz2
gentoo-c30119aab642ca87dd76071f7a1a675424e1f7aa.zip
x11-terms/st: Version 0.8.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/st/Manifest1
-rw-r--r--x11-terms/st/st-0.8.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/x11-terms/st/Manifest b/x11-terms/st/Manifest
index fbcb89e8fbe1..2c8e5669b468 100644
--- a/x11-terms/st/Manifest
+++ b/x11-terms/st/Manifest
@@ -1 +1,2 @@
DIST st-0.7.tar.gz 42418 BLAKE2B 2f0eccaec964106b03c3daa75486d8f373582b2275c00a8d93e236f86e97a4bcb66e2fae6199cb23e4178515c4c67fe65bf95dd3aea98c279a662a7d1204ecef SHA512 9384820d373bfaaef1887290351d8c34abeef26cd7d50ddbae56ffb865864bcca9be798c6238bf1ce595ba7c317f2c1d97653055da0aa302e322eeee822768d4
+DIST st-0.8.tar.gz 45401 BLAKE2B 83a8ca385b6e94ded925b274983830664d84f3d746b4173fae9918f00464679f9e3b695a5a96554ca545c1f132a846a77d0627961ee1149b673133fd461e67a1 SHA512 47af80560f3bd803719b83e95affcb5425fed419fa4703dbd66ee2080f6671597aaba8110f3f7959190e8c3e2b02c62edf062fab950b2649f1d8c532c183de84
diff --git a/x11-terms/st/st-0.8.ebuild b/x11-terms/st/st-0.8.ebuild
new file mode 100644
index 000000000000..6ae06a264f53
--- /dev/null
+++ b/x11-terms/st/st-0.8.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils multilib savedconfig toolchain-funcs
+
+DESCRIPTION="simple terminal implementation for X"
+HOMEPAGE="https://st.suckless.org/"
+SRC_URI="https://dl.suckless.org/st/${P}.tar.gz"
+
+LICENSE="MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~x86"
+IUSE="savedconfig"
+
+RDEPEND="
+ >=sys-libs/ncurses-6.0:0=
+ media-libs/fontconfig
+ x11-libs/libX11
+ x11-libs/libXft
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+ x11-proto/xproto
+"
+
+src_prepare() {
+ eapply_user
+
+ sed -i \
+ -e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \
+ -e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \
+ -e '/^STLDFLAGS/s|= .*|= $(LDFLAGS) $(LIBS)|g' \
+ -e "s|pkg-config|$(tc-getPKG_CONFIG)|g" \
+ config.mk || die
+ sed -i \
+ -e '/tic/d' \
+ Makefile || die
+ tc-export CC
+
+ restore_config config.h
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+
+ dodoc TODO
+
+ make_desktop_entry ${PN} simpleterm utilities-terminal 'System;TerminalEmulator;' ''
+
+ save_config config.h
+}