2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Distributed version control system"
|
2015-02-20 05:37:18 +00:00
|
|
|
HOMEPAGE = "http://git-scm.com"
|
2007-08-03 14:27:47 +00:00
|
|
|
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
|
|
|
|
2015-02-10 19:17:37 +00:00
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \
|
|
|
|
${KERNELORG_MIRROR}/software/scm/git/git-manpages-${PV}.tar.gz;name=manpages"
|
|
|
|
|
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 \
|
|
|
|
"
|
|
|
|
|
2014-02-27 18:01:44 +00:00
|
|
|
inherit autotools-brokensep perlnative
|
2007-11-30 16:52:28 +00:00
|
|
|
|
2014-06-13 16:46:41 +00:00
|
|
|
EXTRA_OEMAKE = "NO_PYTHON=1 CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'"
|
2014-06-13 16:37:45 +00:00
|
|
|
EXTRA_OEMAKE += "'PERL_PATH=/usr/bin/env perl'"
|
2014-05-12 10:04:26 +00:00
|
|
|
EXTRA_OEMAKE_append_class-native = " NO_CROSS_DIRECTORY_HARDLINKS=1"
|
2012-12-05 19:59:51 +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
|
2015-02-10 19:17:37 +00:00
|
|
|
install -d ${D}/${mandir}/man1
|
|
|
|
install -d ${D}/${mandir}/man5
|
|
|
|
install -d ${D}/${mandir}/man7
|
|
|
|
install -t ${D}/${mandir}/man1 ${WORKDIR}/man1/*
|
|
|
|
install -t ${D}/${mandir}/man5 ${WORKDIR}/man5/*
|
|
|
|
install -t ${D}/${mandir}/man7 ${WORKDIR}/man7/*
|
2015-02-10 19:17:38 +00:00
|
|
|
install -d ${D}/${datadir}/bash-completion/completions/
|
|
|
|
install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git
|
2007-08-03 14:27:47 +00:00
|
|
|
}
|
|
|
|
|
2014-09-25 13:28:29 +00:00
|
|
|
perl_native_fixup () {
|
2014-03-26 22:29:20 +00:00
|
|
|
sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \
|
|
|
|
-e 's#${libdir}/perl-native/#${libdir}/#' \
|
2014-09-25 13:28:29 +00:00
|
|
|
${@d.getVar("PERLTOOLS", True).replace(' /',d.getVar('D', True) + '/')}
|
2014-10-08 08:04:03 +00:00
|
|
|
|
|
|
|
# ${libdir} is not applicable here, perl-native files are always
|
|
|
|
# installed to /usr/lib on both 32/64 bits targets.
|
|
|
|
mv ${D}${exec_prefix}/lib/perl-native/perl ${D}${libdir}
|
|
|
|
rmdir -p ${D}${exec_prefix}/lib/perl-native || true
|
2014-09-25 13:28:29 +00:00
|
|
|
}
|
2014-03-26 22:29:20 +00:00
|
|
|
|
2014-06-13 16:46:41 +00:00
|
|
|
REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core"
|
|
|
|
REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates"
|
|
|
|
|
2014-03-26 22:29:20 +00:00
|
|
|
do_install_append_class-target () {
|
2014-09-25 13:28:29 +00:00
|
|
|
perl_native_fixup
|
2014-03-26 22:29:20 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 16:46:41 +00:00
|
|
|
do_install_append_class-native() {
|
|
|
|
create_wrapper ${D}${bindir}/git \
|
|
|
|
GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \
|
|
|
|
GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append_class-nativesdk() {
|
|
|
|
create_wrapper ${D}${bindir}/git \
|
|
|
|
GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \
|
|
|
|
GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR}
|
2014-09-25 13:28:29 +00:00
|
|
|
perl_native_fixup
|
2014-03-26 22:29:20 +00:00
|
|
|
}
|
|
|
|
|
2014-06-13 10:04:47 +00:00
|
|
|
FILES_${PN} += "${datadir}/git-core ${libexecdir}/git-core/"
|
2011-04-30 08:21:15 +00:00
|
|
|
FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"
|
|
|
|
|
2014-03-26 22:29:20 +00:00
|
|
|
PERLTOOLS = " \
|
2011-04-30 08:21:15 +00:00
|
|
|
${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 \
|
2014-03-26 22:29:20 +00:00
|
|
|
${libexecdir}/git-core/git-instaweb \
|
|
|
|
${libexecdir}/git-core/git-submodule \
|
|
|
|
${libexecdir}/git-core/git-am \
|
|
|
|
${libexecdir}/git-core/git-request-pull \
|
|
|
|
${datadir}/gitweb/gitweb.cgi \
|
|
|
|
${datadir}/git-core/templates/hooks/prepare-commit-msg.sample \
|
|
|
|
${datadir}/git-core/templates/hooks/pre-rebase.sample \
|
|
|
|
"
|
|
|
|
|
2015-02-10 19:17:38 +00:00
|
|
|
# Basic tab completion support
|
|
|
|
PACKAGES =+ "${PN}-bash-completion"
|
|
|
|
FILES_${PN}-bash-completion = "${datadir}/bash-completion/completions/*"
|
|
|
|
|
2014-03-26 22:29:20 +00:00
|
|
|
# Git tools requiring perl
|
|
|
|
PACKAGES =+ "${PN}-perltools"
|
|
|
|
FILES_${PN}-perltools += " \
|
|
|
|
${PERLTOOLS} \
|
2014-09-25 13:28:29 +00:00
|
|
|
${libdir}/perl \
|
2011-04-30 08:21:15 +00:00
|
|
|
${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
|
|
|
|
2013-06-07 11:05:20 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|