parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

utf8expr-9999.ebuild (670B)


      1 # Copyright 1999-2023 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=8
      5 
      6 inherit git-r3
      7 
      8 DESCRIPTION="expr(1) for utf8"
      9 HOMEPAGE="http://git.r-36.net/utf8expr"
     10 EGIT_REPO_URI="http://git.r-36.net/utf8expr"
     11 
     12 LICENSE="MIT"
     13 SLOT="0"
     14 KEYWORDS=""
     15 IUSE="static"
     16 
     17 DEPEND=""
     18 RDEPEND=""
     19 
     20 src_prepare() {
     21 	default
     22 
     23 	sed -i \
     24 		-e "/^CDFLAGS/{s|=|+=|g;s|-O. | |g}" \
     25 		-e "/^LDFLAGS/{s|=|+=|g;s|-s | |g}" \
     26 		-e "s@-I/usr/include@@" -e "s@-L/usr/lib@@" \
     27 		config.mk || die
     28 
     29 	if use static; then
     30 		echo "LDFLAGS += -static" >> config.mk
     31 	fi
     32 }
     33 
     34 src_compile() {
     35 	emake
     36 }
     37 
     38 src_install() {
     39 	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
     40 }