diff options
author | Jeroen Roovers <jer@gentoo.org> | 2018-03-16 21:21:46 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2018-03-16 21:22:00 +0100 |
commit | d8f03dd933001bcaefd876347643a18f04fbef5b (patch) | |
tree | 1b6623c28e03752b9081a84835fcc0aab2b9cf66 /x11-terms/st/st-9999.ebuild | |
parent | dev-qt/qt-creator: add 4.5.2 (diff) | |
download | gentoo-d8f03dd933001bcaefd876347643a18f04fbef5b.tar.gz gentoo-d8f03dd933001bcaefd876347643a18f04fbef5b.tar.bz2 gentoo-d8f03dd933001bcaefd876347643a18f04fbef5b.zip |
x11-terms/st: Define src_configure().
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'x11-terms/st/st-9999.ebuild')
-rw-r--r-- | x11-terms/st/st-9999.ebuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/x11-terms/st/st-9999.ebuild b/x11-terms/st/st-9999.ebuild index 81e455048081..6968b6d8c46c 100644 --- a/x11-terms/st/st-9999.ebuild +++ b/x11-terms/st/st-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -16,13 +16,11 @@ RDEPEND=" >=sys-libs/ncurses-6.0:0= media-libs/fontconfig x11-libs/libX11 - x11-libs/libXext x11-libs/libXft " DEPEND=" ${RDEPEND} virtual/pkgconfig - x11-proto/xextproto x11-proto/xproto " @@ -30,23 +28,28 @@ src_prepare() { default sed -i \ - -e '/^CFLAGS/s:[[:space:]]-Wall[[:space:]]: :' \ - -e '/^CFLAGS/s:[[:space:]]-O[^[:space:]]*[[:space:]]: :' \ - -e '/^LDFLAGS/{s:[[:space:]]-s[[:space:]]: :}' \ - -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 '/^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;' '' |