[dev-vcs/git-gui-tools] version bump to 1.7.5_rc3
This commit is contained in:
@@ -0,0 +1,207 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=3
|
||||
|
||||
# split ebuild providing only ->>> gitk, gitview, git-gui, git-citool
|
||||
|
||||
GENTOO_DEPEND_ON_PERL=no
|
||||
|
||||
# bug #329479: git-remote-testgit is not multiple-version aware
|
||||
PYTHON_DEPEND="2"
|
||||
|
||||
inherit toolchain-funcs eutils python
|
||||
[ "$PV" == "9999" ] && inherit git
|
||||
|
||||
MY_PV="${PV/_rc/.rc}"
|
||||
MY_PV="${MY_PV/-gui-tools}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
MY_P="${MY_P/-gui-tools}"
|
||||
|
||||
DESCRIPTION="GUI tools derived from git: gitk, git-gui and gitview"
|
||||
HOMEPAGE="http://www.git-scm.com/"
|
||||
if [ "$PV" != "9999" ]; then
|
||||
SRC_URI="mirror://kernel/software/scm/git/${MY_P}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
else
|
||||
SRC_URI=""
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
|
||||
# EGIT_REPO_URI="http://www.kernel.org/pub/scm/git/git.git"
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
# Common to both DEPEND and RDEPEND
|
||||
CDEPEND="
|
||||
sys-libs/zlib
|
||||
dev-lang/tk"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
~dev-vcs/git-${PV}
|
||||
dev-vcs/git[-gtk]
|
||||
dev-vcs/git[-tk]
|
||||
>=dev-python/pygtk-2.8
|
||||
|| ( dev-python/pygtksourceview:2 dev-python/gtksourceview-python )"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/cpio
|
||||
"
|
||||
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
#if use python ; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
#fi
|
||||
}
|
||||
|
||||
# This is needed because for some obscure reasons future calls to make don't
|
||||
# pick up these exports if we export them in src_unpack()
|
||||
exportmakeopts() {
|
||||
local myopts
|
||||
|
||||
myopts="${myopts} NO_EXPAT=YesPlease"
|
||||
myopts="${myopts} NO_CURL=YesPlease"
|
||||
# broken assumptions, because of broken build system ...
|
||||
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
|
||||
myopts="${myopts} INSTALL=install TAR=tar"
|
||||
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh"
|
||||
myopts="${myopts} SANE_TOOL_PATH="
|
||||
myopts="${myopts} OLD_ICONV="
|
||||
myopts="${myopts} NO_EXTERNAL_GREP="
|
||||
|
||||
# can't define this to null, since the entire makefile depends on it
|
||||
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
|
||||
|
||||
use !elibc_glibc && myopts="${myopts} NEEDS_LIBICONV=YesPlease"
|
||||
|
||||
# use tk \
|
||||
# || myopts="${myopts} NO_TCLTK=YesPlease"
|
||||
#use perl \
|
||||
# && myopts="${myopts} INSTALLDIRS=vendor" \
|
||||
# || myopts="${myopts} NO_PERL=YesPlease"
|
||||
myopts="${myopts} INSTALLDIRS=vendor"
|
||||
#use python \
|
||||
# || myopts="${myopts} NO_PYTHON=YesPlease"
|
||||
|
||||
# Bug 290465:
|
||||
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
|
||||
[[ "${CHOST}" == *-uclibc* ]] && \
|
||||
myopts="${myopts} NO_NSEC=YesPlease"
|
||||
|
||||
export MY_MAKEOPTS="${myopts}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [ "${PV}" != "9999" ]; then
|
||||
unpack ${MY_P}.tar.bz2
|
||||
cd "${S}"
|
||||
else
|
||||
git_src_unpack
|
||||
cd "${S}"
|
||||
#cp "${FILESDIR}"/GIT-VERSION-GEN .
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug #350330 - automagic CVS when we don't want it is bad.
|
||||
epatch "${FILESDIR}"/git-1.7.3.5-optional-cvs.patch
|
||||
|
||||
sed -i \
|
||||
-e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
|
||||
-e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
|
||||
-e 's:^\(CC = \).*$:\1$(OPTCC):' \
|
||||
-e 's:^\(AR = \).*$:\1$(OPTAR):' \
|
||||
-e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
|
||||
-e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
|
||||
Makefile || die "sed failed"
|
||||
|
||||
# Never install the private copy of Error.pm (bug #296310)
|
||||
sed -i \
|
||||
-e '/private-Error.pm/s,^,#,' \
|
||||
perl/Makefile.PL
|
||||
}
|
||||
|
||||
git_emake() {
|
||||
PYTHON_PATH="$(PYTHON -a)"
|
||||
emake ${MY_MAKEOPTS} \
|
||||
DESTDIR="${D}" \
|
||||
OPTCFLAGS="${CFLAGS}" \
|
||||
OPTLDFLAGS="${LDFLAGS}" \
|
||||
OPTCC="$(tc-getCC)" \
|
||||
OPTAR="$(tc-getAR)" \
|
||||
prefix="${EPREFIX}"/usr \
|
||||
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
sysconfdir="${EPREFIX}"/etc \
|
||||
PYTHON_PATH="${PYTHON_PATH}" \
|
||||
PERL_PATH="${EPREFIX}/usr/bin/env perl" \
|
||||
PERL_MM_OPT="" \
|
||||
GIT_TEST_OPTS="--no-color" \
|
||||
"$@"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
exportmakeopts
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
git_emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
git_emake \
|
||||
install || \
|
||||
die "make install failed"
|
||||
|
||||
#if use python && use gtk ; then
|
||||
dobin "${S}"/contrib/gitview/gitview
|
||||
python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/gitview
|
||||
dodoc "${S}"/contrib/gitview/gitview.txt
|
||||
#fi
|
||||
|
||||
find "${ED}"/usr/lib64/perl5/ \
|
||||
-name .packlist \
|
||||
-exec rm \{\} \;
|
||||
|
||||
rm -rf "${ED}"/usr/share/gitweb
|
||||
rm -rf "${ED}"usr/share/git/contrib
|
||||
rm -rf "${ED}"usr/share/git-core
|
||||
rm -rf "${ED}"usr/share/man/
|
||||
rm -rf "${ED}"usr/lib{,64}/perl5/
|
||||
rm -rf "${ED}"usr/lib{,64}/python*
|
||||
|
||||
local myfile
|
||||
for myfile in "${ED}"usr/bin/*; do
|
||||
case "$myfile" in
|
||||
*/gitview|*/gitk)
|
||||
true ;;
|
||||
*)
|
||||
rm -f "$myfile" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
for myfile in "${ED}"usr/libexec/git-core/*; do
|
||||
case "$myfile" in
|
||||
*/git-gui|*/git-gui--askpass|*/git-citool)
|
||||
true ;;
|
||||
*)
|
||||
rm -f "$myfile" ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize git_remote_helpers
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup git_remote_helpers
|
||||
}
|
||||
Reference in New Issue
Block a user