Created
July 21, 2014 15:55
-
-
Save KiNgMaR/4dc06372de0386617d72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- collectd-5.4.1.ebuild 2014-06-30 21:31:02.000000000 +0200 | |
+++ collectd-9999.ebuild 2014-07-21 17:52:57.350132618 +0200 | |
@@ -10,12 +10,19 @@ | |
DESCRIPTION="A a daemon which collects system statistic and provides mechanisms to store the values" | |
-HOMEPAGE="http://collectd.org" | |
-SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" | |
+if [[ ${PV} == *9999* ]]; then | |
+ inherit git-2 | |
+ EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/collectd/collectd.git"} | |
+ SRC_URI="" | |
+ KEYWORDS="" | |
+else | |
+ SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2" | |
+ KEYWORDS="~amd64 ~x86" | |
+fi | |
+HOMEPAGE="http://collectd.org" | |
LICENSE="GPL-2" | |
SLOT="0" | |
-KEYWORDS="~amd64 ~x86" | |
IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin perl selinux static-libs" | |
# The plugin lists have to follow here since they extend IUSE | |
@@ -204,6 +211,10 @@ | |
} | |
src_prepare() { | |
+ if [[ ${PV} == *9999* ]]; then | |
+ ./build.sh | |
+ fi | |
+ | |
base_src_prepare | |
# There's some strange prefix handling in the default config file, resulting in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment