logo

overlay

My own overlay for experimentations, use with caution, no support is provided

stagit-0.9.ebuild (666B)


      1 # Copyright 2016-2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=7
      5 
      6 DESCRIPTION="static git page generator"
      7 HOMEPAGE="https://git.codemadness.org/stagit/"
      8 SRC_URI="https://codemadness.org/releases/stagit/${P}.tar.gz"
      9 
     10 LICENSE="MIT"
     11 SLOT="0"
     12 KEYWORDS="~amd64"
     13 IUSE=""
     14 
     15 DEPEND="dev-libs/libgit2:="
     16 RDEPEND="${DEPEND}"
     17 
     18 src_configure() {
     19 	sed -i \
     20 		-e "s;^PREFIX =.*;PREFIX ?= ${EPREFIX}/usr;" \
     21 		-e "s;^MANPREFIX = .*;MANPREFIX = ${EPREFIX}/usr/share/man;" \
     22 		-e "s;^LDFLAGS = -s;LDFLAGS = ;" \
     23 		"${S}/config.mk" || die
     24 
     25 	sed -i "s/#CC =.*/CC ?= ${CC:-cc}/" "${S}/config.mk" || die
     26 }