/[gentoo-x86]/net-misc/netifrc/netifrc-9999.ebuild
Gentoo

Diff of /net-misc/netifrc/netifrc-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/netifrc/netifrc-9999.ebuild,v 1.6 2014/01/18 09:10:37 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/netifrc/netifrc-9999.ebuild,v 1.7 2014/03/05 18:46:39 robbat2 Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit eutils 7inherit eutils
8 8
19 19
20LICENSE="BSD-2" 20LICENSE="BSD-2"
21SLOT="0" 21SLOT="0"
22IUSE="" 22IUSE=""
23 23
24DEPEND="" 24DEPEND="kernel_linux? ( virtual/pkgconfig )"
25RDEPEND=">=sys-apps/openrc-0.12 25RDEPEND=">=sys-apps/openrc-0.12
26 !<sys-apps/openrc-0.12" 26 !<sys-apps/openrc-0.12"
27 27
28src_prepare() { 28src_prepare() {
29 sed -i 's:0444:0644:' mk/sys.mk || die
30 sed -i "/^DIR/s:/${PN}:/${PF}:" doc/Makefile || die #241342
31
32 if [[ ${PV} == "9999" ]] ; then 29 if [[ ${PV} == "9999" ]] ; then
33 local ver="git-${EGIT_VERSION:0:6}" 30 local ver="git-${EGIT_VERSION:0:6}"
34 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die 31 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
35 einfo "Producing ChangeLog from Git history" 32 einfo "Producing ChangeLog from Git history"
36 GIT_DIR="${S}/.git" git log >"${S}"/ChangeLog 33 GIT_DIR="${S}/.git" git log >"${S}"/ChangeLog
40 epatch_user 37 epatch_user
41} 38}
42 39
43src_compile() { 40src_compile() {
44 MAKE_ARGS="${MAKE_ARGS} 41 MAKE_ARGS="${MAKE_ARGS}
45 LIBEXECDIR=${EPREFIX}/lib/${PN}" 42 LIBEXECDIR=${EPREFIX}/lib/${PN} PF=${PF}"
46 43
47 use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}" 44 use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
48 45
49 emake ${MAKE_ARGS} all 46 emake ${MAKE_ARGS} all
50} 47}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20