parlay

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

utf8expr-9999.ebuild (648B)


      1 # Copyright 1999-2025 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 src_prepare() {
     18 	default
     19 
     20 	sed -i \
     21 		-e "/^CDFLAGS/{s|=|+=|g;s|-O. | |g}" \
     22 		-e "/^LDFLAGS/{s|=|+=|g;s|-s | |g}" \
     23 		-e "s@-I/usr/include@@" -e "s@-L/usr/lib@@" \
     24 		config.mk || die
     25 
     26 	if use static; then
     27 		echo "LDFLAGS += -static" >> config.mk
     28 	fi
     29 }
     30 
     31 src_compile() {
     32 	emake
     33 }
     34 
     35 src_install() {
     36 	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
     37 }