diff options
author | Jeroen Roovers <jer@gentoo.org> | 2018-03-23 16:08:58 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2018-03-23 16:09:11 +0100 |
commit | ff2f230569216c26cef440d3b5ffd9b4657bd226 (patch) | |
tree | c36338a7c49c7612d435ef4c60abf94c4aea4c61 /x11-terms | |
parent | app-emulation/docker: Version bump to 18.03.0; switch back from docker-runc t... (diff) | |
download | gentoo-ff2f230569216c26cef440d3b5ffd9b4657bd226.tar.gz gentoo-ff2f230569216c26cef440d3b5ffd9b4657bd226.tar.bz2 gentoo-ff2f230569216c26cef440d3b5ffd9b4657bd226.zip |
x11-terms/st: Version 0.8.1.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/st/Manifest | 1 | ||||
-rw-r--r-- | x11-terms/st/st-0.8.1.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/x11-terms/st/Manifest b/x11-terms/st/Manifest index 2c8e5669b468..c568974c1871 100644 --- a/x11-terms/st/Manifest +++ b/x11-terms/st/Manifest @@ -1,2 +1,3 @@ DIST st-0.7.tar.gz 42418 BLAKE2B 2f0eccaec964106b03c3daa75486d8f373582b2275c00a8d93e236f86e97a4bcb66e2fae6199cb23e4178515c4c67fe65bf95dd3aea98c279a662a7d1204ecef SHA512 9384820d373bfaaef1887290351d8c34abeef26cd7d50ddbae56ffb865864bcca9be798c6238bf1ce595ba7c317f2c1d97653055da0aa302e322eeee822768d4 +DIST st-0.8.1.tar.gz 45423 BLAKE2B e7f5d731ba86f37db4cda1f612a8f191f955d7ea8fd57c3fb142c695c41fda4d3b82a483bb3c1fff2d4ff66d9277ed22339c026bca4f4af740fc80cbbc7f3620 SHA512 787d35b0cc8b1435dad7809e9995bed3c7f781e012a4a43dd5ae3d670ebc0e4bc03a56ba3872ff8a3bdba316a41ba771c626adc8de0559296457a59170756c6b DIST st-0.8.tar.gz 45401 BLAKE2B 83a8ca385b6e94ded925b274983830664d84f3d746b4173fae9918f00464679f9e3b695a5a96554ca545c1f132a846a77d0627961ee1149b673133fd461e67a1 SHA512 47af80560f3bd803719b83e95affcb5425fed419fa4703dbd66ee2080f6671597aaba8110f3f7959190e8c3e2b02c62edf062fab950b2649f1d8c532c183de84 diff --git a/x11-terms/st/st-0.8.1.ebuild b/x11-terms/st/st-0.8.1.ebuild new file mode 100644 index 000000000000..185c4aa2643b --- /dev/null +++ b/x11-terms/st/st-0.8.1.ebuild @@ -0,0 +1,68 @@ +# 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() { + default + + sed -i \ + -e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \ + -e '/^STLDFLAGS/s|= .*|= $(LDFLAGS) $(LIBS)|g' \ + -e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \ + config.mk || die + sed -i \ + -e '/tic/d' \ + Makefile || die + + restore_config config.h +} + +src_configure() { + sed -i \ + -e "s|pkg-config|$(tc-getPKG_CONFIG)|g" \ + config.mk || die + + tc-export CC +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install + + dodoc TODO + + make_desktop_entry ${PN} simpleterm utilities-terminal 'System;TerminalEmulator;' '' + + save_config config.h +} + +pkg_postinst() { + if ! [[ "${REPLACING_VERSIONS}" ]]; then + elog "Please ensure a usable font is installed, like" + elog " media-fonts/corefonts" + elog " media-fonts/dejavu" + elog " media-fonts/urw-fonts" + fi +} |