diff --git a/dev-cpp/pystring/pystring-1.1.3.ebuild b/dev-cpp/pystring/pystring-1.1.3.ebuild index 291230f..22f0aa0 100644 --- a/dev-cpp/pystring/pystring-1.1.3.ebuild +++ b/dev-cpp/pystring/pystring-1.1.3.ebuild @@ -14,13 +14,23 @@ else KEYWORDS="~amd64" fi -LICENSE="all-rights-reserved" +LICENSE="BSD" SLOT="0" +BDEPEND=" + sys-devel/gcc[cxx] + sys-devel/libtool +" + +src_prepare() { + sed -i "s/\(CXXFLAGS =\) -g -O3 \(.*\)/\1 ${CXXFLAGS} \2/" Makefile || die + default +} + src_compile() { emake LIBDIR="${S}" install mkdir pystring || die - mv pystring.h pystring || die + cp pystring.h pystring || die } src_install() { diff --git a/dev-cpp/pystring/pystring-9999.ebuild b/dev-cpp/pystring/pystring-9999.ebuild index 291230f..22f0aa0 100644 --- a/dev-cpp/pystring/pystring-9999.ebuild +++ b/dev-cpp/pystring/pystring-9999.ebuild @@ -14,13 +14,23 @@ else KEYWORDS="~amd64" fi -LICENSE="all-rights-reserved" +LICENSE="BSD" SLOT="0" +BDEPEND=" + sys-devel/gcc[cxx] + sys-devel/libtool +" + +src_prepare() { + sed -i "s/\(CXXFLAGS =\) -g -O3 \(.*\)/\1 ${CXXFLAGS} \2/" Makefile || die + default +} + src_compile() { emake LIBDIR="${S}" install mkdir pystring || die - mv pystring.h pystring || die + cp pystring.h pystring || die } src_install() {