diff options
Diffstat (limited to 'x11-terms/st')
-rw-r--r-- | x11-terms/st/Manifest | 2 | ||||
-rw-r--r-- | x11-terms/st/st-0.8.4.ebuild | 68 |
2 files changed, 70 insertions, 0 deletions
diff --git a/x11-terms/st/Manifest b/x11-terms/st/Manifest index 067784b9cd42..f76cbd846724 100644 --- a/x11-terms/st/Manifest +++ b/x11-terms/st/Manifest @@ -1,6 +1,8 @@ DIST st-0.8.2.tar.gz 44788 BLAKE2B cc7fc9040c6db1c903d0f7290e5cfd1c636b2d17b42645956583cc8fa883bc1f0631ffbd683e735a834ff96f90171d9d423801d84ce4c0686564498baa97bbc6 SHA512 eaaf5f2fe050ee768d16a9c8c295ba13315775b3a8a3201e020237a3dd217bfb811832d58477249000596289a6cb3287fbb39d6327fc90986af1c363e4b5bf8d DIST st-0.8.3.tar.gz 46292 BLAKE2B e84986dedd9aa8ff8e0b1c702cf5601c16cbed67f69623f41bc4908adb06fa29783b21de22576a50ccaa3cb49f515f284b1c4e72b6c5d9fd9b8efb05434b31c1 SHA512 2a824e43d9b3085d9c5c772e3411d744509be79301937c946b27f25451f68813f46c863dd37babbf67716506e86bc70d03645b39d7b124390b07f8f3e0c0c573 +DIST st-0.8.4.tar.gz 47330 BLAKE2B 709278a669414d7d44beba02ebb606853dbaa9cfe71650e40a11d3691d6bee2c0b2e8db57ca2df52776ca564a20f64f3ef7acec8dbad6d66408d314fe26fb794 SHA512 f6f95081f9d09d442228bac1149d75d36a9f4f049b5504cf5ce00b353563ff92c62a2628ce728663fec107a14bea0eeb22b7a72804c37090de33819243d7512a EBUILD st-0.8.2.ebuild 1395 BLAKE2B 13ec341a08d934219c584f1d308f0d12174be9ad41b2e35c08805367013c901407885383c13fc0cb42cac4851542ca9d12d5c49614a1f2c29f8972866f4ede58 SHA512 d961201fb17a883b9c083201fd457307e2601c33b91b12be68fcd53c4b57863731193cff39c895e921bcc40411fa9d19aee6a72ad1601d59acb978f2dc321c4b EBUILD st-0.8.3.ebuild 1398 BLAKE2B b2e5497c103ed053d93052a6f57346427670af48ec6f227a12a13e032bc0c1ba30899d671edcf8b71db16e3b47ddeedf5b0601620559f2bddf5e8431880245f4 SHA512 103f8ea25c28ed9d49d5a2b7afe9a3f6c15996c1bde1b3504bde0c20897e013aca0e404d5add218e2093606069270f61fea8e605202584bd3d73e010f77ff88e +EBUILD st-0.8.4.ebuild 1398 BLAKE2B b2e5497c103ed053d93052a6f57346427670af48ec6f227a12a13e032bc0c1ba30899d671edcf8b71db16e3b47ddeedf5b0601620559f2bddf5e8431880245f4 SHA512 103f8ea25c28ed9d49d5a2b7afe9a3f6c15996c1bde1b3504bde0c20897e013aca0e404d5add218e2093606069270f61fea8e605202584bd3d73e010f77ff88e EBUILD st-9999.ebuild 1367 BLAKE2B 17a55761d49fe1ae3c88a730ccae177895e4174b8755680d53836045bfeab38e2eae9cba338d8fbd4d66184b840f46035c9960972108d9d8239ee8c4c7107e5e SHA512 f30b676ff15da80725d672c35bf3581d7424c431dcede7c2412dfe2390fc31e4982de33c7cb2edd0a26d29de29a48a4a264ad9e86ca0518d36bca2f078f7cc4c MISC metadata.xml 210 BLAKE2B bb9591af5406abbf589664053ab6e5cb38933fe6ef97c11609405392b050b26cff8e94e04e85e5798124abd46283bee67b2a74923a5041616df15aaa9cff6da9 SHA512 f7cbe57a24b67a28696f91061ad8bd61d7d4cf3d59d20c3dcc6a4921e29672d00ecf3ece70a8813399d2467ebd626f8f829300e81fc722e9aaa527e213a5fb54 diff --git a/x11-terms/st/st-0.8.4.ebuild b/x11-terms/st/st-0.8.4.ebuild new file mode 100644 index 000000000000..c377bfcdc276 --- /dev/null +++ b/x11-terms/st/st-0.8.4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit desktop 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 ~arm64 ~hppa ~ppc64 ~x86" +IUSE="savedconfig" + +RDEPEND=" + >=sys-libs/ncurses-6.0:0= + media-libs/fontconfig + x11-libs/libX11 + x11-libs/libXft +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + x11-base/xorg-proto +" + +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 +} |