2007-08-03 14:27:47 +00:00
|
|
|
DESCRIPTION = "The git revision control system used by the Linux kernel developers"
|
|
|
|
SECTION = "console/utils"
|
2010-11-11 04:35:31 +00:00
|
|
|
LICENSE = "GPLv2"
|
2011-06-10 07:25:19 +00:00
|
|
|
DEPENDS = "openssl curl zlib expat"
|
2007-08-03 14:27:47 +00:00
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
PROVIDES_append_class-native = " git-replacement-native"
|
2012-07-17 11:59:28 +00:00
|
|
|
|
2011-05-23 22:41:33 +00:00
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.bz2 "
|
2007-08-03 14:27:47 +00:00
|
|
|
S = "${WORKDIR}/git-${PV}"
|
|
|
|
|
2010-11-11 04:35:31 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1"
|
|
|
|
|
2012-09-13 12:58:30 +00:00
|
|
|
EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \
|
|
|
|
--without-tcltk \
|
|
|
|
"
|
|
|
|
|
|
|
|
EXTRA_OEMAKE = "NO_PYTHON=1"
|
2007-11-30 16:52:28 +00:00
|
|
|
|
2011-06-10 07:25:19 +00:00
|
|
|
inherit autotools perlnative
|
2007-11-30 16:52:28 +00:00
|
|
|
|
2012-04-09 08:37:12 +00:00
|
|
|
do_compile_prepend () {
|
|
|
|
# Remove perl/perl.mak to fix the out-of-date perl.mak error
|
|
|
|
# during rebuild
|
|
|
|
rm -f perl/perl.mak
|
|
|
|
}
|
|
|
|
|
2007-08-03 14:27:47 +00:00
|
|
|
do_install () {
|
2011-04-30 08:21:15 +00:00
|
|
|
oe_runmake install DESTDIR="${D}" bindir=${bindir} \
|
2011-04-29 10:13:46 +00:00
|
|
|
template_dir=${datadir}/git-core/templates \
|
2007-08-03 14:27:47 +00:00
|
|
|
GIT_PYTHON_DIR=${D}${datadir}/git-core/python
|
2012-03-16 18:53:19 +00:00
|
|
|
rm -rf ${D}${libdir}/perl-native
|
2007-08-03 14:27:47 +00:00
|
|
|
}
|
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
do_install_append_class-native() {
|
2011-09-05 15:37:04 +00:00
|
|
|
create_wrapper ${D}/${bindir}/git \
|
|
|
|
GIT_EXEC_PATH=${libexecdir}/git-core \
|
|
|
|
GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates
|
|
|
|
}
|
|
|
|
|
2011-04-30 08:21:15 +00:00
|
|
|
FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/"
|
|
|
|
FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"
|
|
|
|
|
|
|
|
# Git tools requiring perl
|
|
|
|
PACKAGES =+ "${PN}-perltools"
|
|
|
|
FILES_${PN}-perltools += " \
|
|
|
|
${libexecdir}/git-core/git-add--interactive \
|
|
|
|
${libexecdir}/git-core/git-archimport \
|
|
|
|
${libexecdir}/git-core/git-cvsexportcommit \
|
|
|
|
${libexecdir}/git-core/git-cvsimport \
|
|
|
|
${libexecdir}/git-core/git-cvsserver \
|
|
|
|
${bindir}/git-cvsserver \
|
|
|
|
${libexecdir}/git-core/git-difftool \
|
|
|
|
${libexecdir}/git-core/git-relink \
|
|
|
|
${libexecdir}/git-core/git-send-email \
|
|
|
|
${libexecdir}/git-core/git-svn \
|
|
|
|
${datadir}/perl \
|
|
|
|
"
|
|
|
|
RDEPENDS_${PN}-perltools = "${PN} perl perl-module-file-path findutils"
|
|
|
|
|
2011-07-05 22:10:50 +00:00
|
|
|
PACKAGES =+ "${PN}-python"
|
|
|
|
FILES_${PN}-python = "${libdir}/python*"
|
|
|
|
|
2012-03-16 18:53:19 +00:00
|
|
|
|
2011-04-30 08:21:15 +00:00
|
|
|
# git-tk package with gitk and git-gui
|
|
|
|
PACKAGES =+ "${PN}-tk"
|
2011-05-10 17:43:22 +00:00
|
|
|
#RDEPENDS_${PN}-tk = "${PN} tk tcl"
|
|
|
|
#EXTRA_OEMAKE = "TCL_PATH=${STAGING_BINDIR_CROSS}/tclsh"
|
2011-04-30 08:21:15 +00:00
|
|
|
FILES_${PN}-tk = " \
|
|
|
|
${bindir}/gitk \
|
|
|
|
${datadir}/gitk \
|
|
|
|
"
|
|
|
|
|
2011-07-05 22:10:50 +00:00
|
|
|
PACKAGES =+ "gitweb"
|
|
|
|
FILES_gitweb = "${datadir}/gitweb/"
|
|
|
|
|
2009-11-05 13:40:01 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|