mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
272 lines
7.7 KiB
Bash
272 lines
7.7 KiB
Bash
SUMMARY="Fast, scalable, distributed revision control system"
|
|
DESCRIPTION="Git is a free and open source distributed version control system \
|
|
designed to handle everything from small to very large projects with speed \
|
|
and efficiency.
|
|
|
|
Git is easy to learn and has a tiny footprint with lightning fast performance. \
|
|
It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with \
|
|
features like cheap local branching, convenient staging areas, and multiple \
|
|
workflows."
|
|
HOMEPAGE="https://git-scm.com/"
|
|
COPYRIGHT="2005-2020 Git Authors (see git web site for list)"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.kernel.org/pub/software/scm/git/git-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="9ece0dcb07a5e0d7366a92b613b201cca11ae368ab7687041364b3e756e495d6"
|
|
SOURCE_URI_2="https://www.kernel.org/pub/software/scm/git/git-manpages-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256_2="387e46a0b67c148be7ef80759b1930a3b64ac77782630c18afc784f35ed93426"
|
|
SOURCE_URI_3="https://www.kernel.org/pub/software/scm/git/git-htmldocs-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256_3="5be14d0835177f8ada0310c98b0248c7caaea0a302b7b58f1ccc0c0f7ece2466"
|
|
PATCHES="git-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/gitconfig keep-old
|
|
"
|
|
USER_SETTINGS_FILES="
|
|
settings/git directory
|
|
"
|
|
|
|
PROVIDES="
|
|
git = $portVersion compat >= 2.3
|
|
cmd:git = $portVersion compat >= 2.3
|
|
cmd:git_receive_pack = $portVersion compat >= 2.3
|
|
cmd:git_shell = $portVersion compat >= 2.3
|
|
cmd:git_upload_archive = $portVersion compat >= 2.3
|
|
cmd:git_upload_pack = $portVersion compat >= 2.3
|
|
"
|
|
PROVIDES_arch="
|
|
git_arch = $portVersion compat >= 2.3
|
|
cmd:git_archimport = $portVersion compat >= 2.3
|
|
"
|
|
PROVIDES_cvs="
|
|
git_cvs = $portVersion compat >= 2.3
|
|
cmd:git_cvsimport = $portVersion compat >= 2.3
|
|
cmd:git_cvsserver = $portVersion compat >= 2.3
|
|
"
|
|
PROVIDES_daemon="
|
|
git_daemon = $portVersion compat >= 2.3
|
|
cmd:git_daemon = $portVersion compat >= 2.3
|
|
"
|
|
PROVIDES_email="
|
|
git_email = $portVersion compat >= 2.3
|
|
cmd:git_send_email = $portVersion compat >= 2.3
|
|
"
|
|
PROVIDES_source="
|
|
git_source = $portVersion compat >= 2.3
|
|
"
|
|
PROVIDES_svn="
|
|
git_svn = $portVersion compat >= 2.3
|
|
cmd:git_svn = $portVersion compat >= 2.3
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku
|
|
cmd:man
|
|
cmd:nano
|
|
cmd:perl >= 5
|
|
cmd:python
|
|
lib:libcurl
|
|
lib:libexpat
|
|
lib:libiconv
|
|
lib:libintl
|
|
lib:libpcre2_8
|
|
lib:libnghttp2
|
|
lib:libssl
|
|
lib:libz
|
|
vendor_perl
|
|
"
|
|
REQUIRES_arch="
|
|
haiku
|
|
git == $portVersion base
|
|
"
|
|
REQUIRES_cvs="
|
|
haiku
|
|
git == $portVersion base
|
|
cmd:cvsps
|
|
"
|
|
REQUIRES_daemon="
|
|
haiku
|
|
lib:libcrypto
|
|
lib:libiconv
|
|
lib:libintl
|
|
lib:libpcre2_8
|
|
lib:libz
|
|
git == $portVersion base
|
|
"
|
|
REQUIRES_email="
|
|
haiku
|
|
git == $portVersion base
|
|
"
|
|
REQUIRES_svn="
|
|
haiku
|
|
alien_svn
|
|
git == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
cmd:man
|
|
cmd:nano
|
|
cmd:perl
|
|
devel:libcurl
|
|
devel:libexpat
|
|
devel:libiconv
|
|
devel:libintl
|
|
devel:libnghttp2
|
|
devel:libpcre2_8
|
|
devel:libssl
|
|
devel:libz
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:find
|
|
cmd:gcc
|
|
cmd:gettext
|
|
cmd:ld
|
|
cmd:make
|
|
cmd:msgfmt
|
|
cmd:sed
|
|
cmd:tar
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cmd:diff
|
|
"
|
|
|
|
makeGit()
|
|
{
|
|
make prefix=$prefix \
|
|
bindir_relative=$relativeBinDir \
|
|
mandir=$manDir \
|
|
infodir=$infoDir \
|
|
gitexecdir=$libDir/git-core \
|
|
sharedir=$dataDir \
|
|
template_dir=$dataDir/git-core/templates \
|
|
htmldir=$docDir \
|
|
sysconfdir=$sysconfDir \
|
|
PTHREAD_LIBS= \
|
|
USE_LIBPCRE2=YesPlease \
|
|
NO_D_TYPE_IN_DIRENT=YesPlease \
|
|
NO_MEMMEM=YesPlease \
|
|
NO_MKSTEMPS=YesPlease \
|
|
NEEDS_LIBICONV=YesPlease \
|
|
NO_R_TO_GCC_LINKER=YesPlease \
|
|
GNU_ROFF=YesPlease \
|
|
PERL_PATH=/bin/perl \
|
|
NO_PYTHON=YesPlease \
|
|
NO_TCLTK=YesPlease \
|
|
OBJECT_CREATION_USES_RENAMES=YesPlease \
|
|
NO_CROSS_DIRECTORY_HARDLINKS=YesPlease \
|
|
NO_INSTALL_HARDLINKS=YesPlease \
|
|
HAVE_DEV_TTY=YesPlease \
|
|
DEFAULT_EDITOR=nano \
|
|
DEFAULT_HELP_FORMAT=web \
|
|
BASIC_LDFLAGS="-lnetwork -lbsd" \
|
|
"$@"
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
makeGit $jobArgs
|
|
makeGit strip
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
makeGit install
|
|
|
|
# copy manpages
|
|
mkdir -p $manDir
|
|
cp -rd $sourceDir2/* $manDir/
|
|
|
|
# copy html documentation
|
|
htmlDir=$docDir
|
|
mkdir -p $htmlDir
|
|
cp -rd $sourceDir3/*.html $htmlDir/
|
|
rm $htmlDir/git-gui.html
|
|
|
|
# Default system-wide gitconfig. Settings in this file are only used
|
|
# if they are unset both for the repository and globally (global options
|
|
# are saved in the user settings file).
|
|
# core.untrackedCache caches enumeration of untracked files and uses an
|
|
# efficient method of determining whether the cache is out of date. This
|
|
# is filesystem-dependent, but supported on BeFS.
|
|
mkdir -p $sysconfDir
|
|
printf "[core]\n untrackedCache = true" > $sysconfDir/gitconfig
|
|
|
|
# replace copies of git binaries with symlinks
|
|
cd $binDir
|
|
for program in git*; do
|
|
ln -sfn "../lib/git-core/$program" "$program"
|
|
done
|
|
|
|
packageEntries arch \
|
|
documentation/packages/git/git-archimport.html \
|
|
documentation/man/man1/git-archimport.1 \
|
|
lib/git-core/git-archimport
|
|
|
|
packageEntries cvs \
|
|
bin/git-cvsserver \
|
|
documentation/packages/git/git-cvsexportcommit.html \
|
|
documentation/packages/git/git-cvsimport.html \
|
|
documentation/packages/git/git-cvsserver.html \
|
|
documentation/man/man1/git-cvsexportcommit.1 \
|
|
documentation/man/man1/git-cvsimport.1 \
|
|
documentation/man/man1/git-cvsserver.1 \
|
|
documentation/man/man7/gitcvs-migration.7 \
|
|
lib/git-core/git-cvsexportcommit \
|
|
lib/git-core/git-cvsimport \
|
|
lib/git-core/git-cvsserver
|
|
|
|
packageEntries daemon \
|
|
documentation/packages/git/git-credential-cache--daemon.html \
|
|
documentation/packages/git/git-credential-cache.html \
|
|
documentation/packages/git/git-daemon.html \
|
|
documentation/man/man1/git-credential-cache--daemon.1 \
|
|
documentation/man/man1/git-credential-cache.1 \
|
|
documentation/man/man1/git-daemon.1 \
|
|
lib/git-core/git-credential-cache--daemon \
|
|
lib/git-core/git-credential-cache \
|
|
lib/git-core/git-daemon
|
|
|
|
packageEntries email \
|
|
documentation/packages/git/git-send-email.html \
|
|
documentation/man/man1/git-send-email.1 \
|
|
lib/git-core/git-send-email
|
|
|
|
packageEntries svn \
|
|
documentation/packages/git/git-svn.html \
|
|
documentation/man/man1/git-svn.1 \
|
|
lib/git-core/git-svn
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# x86_64
|
|
#failed test(s): t0005 t0006 t0210 t0211 t0301 t0302 t1010 t1013 t1060 t1100 t1300 t1305 t1306 t1308 t1309 t1400 t1500 t1510 t2013 t2400 t2403 t3007 t3200 t3420 t3426 t3512 t3513 t3600 t3903 t3906 t4015 t4027 t4059 t4060 t4064 t4067 t4137 t4208 t4255 t5000 t5003 t5300 t5310 t5318 t5400 t5410 t5505 t5510 t5516 t5525 t5526 t5545 t5562 t5572 t5601 t5604 t5605 t5614 t5616 t5617 t5702 t5811 t5814 t5815 t6008 t6041 t6120 t6134 t7001 t7003 t7060 t7064 t7112 t7300 t7400 t7401 t7403 t7405 t7406 t7407 t7408 t7409 t7410 t7411 t7412 t7413 t7414 t7415 t7416 t7417 t7418 t7419 t7506 t7507 t7508 t7610 t7613 t7700 t7701 t7800 t7814 t9300 t9350
|
|
#fixed 2
|
|
#success 19182
|
|
#failed 1042
|
|
#broken 236
|
|
#total 20841
|
|
|
|
# x86_gcc2
|
|
#failed test(s): t0005 t0006 t0090 t0210 t0301 t0302 t0410 t1013 t1060 t1100 t1300 t1305 t1306 t1308 t1309 t1400 t1500 t1501 t1510 t1512 t2013 t2400 t2403 t3007 t3200 t3203 t3205 t3206 t3420 t3426 t3512 t3513 t3600 t3903 t3906 t4014 t4015 t4027 t4034 t4059 t4060 t4064 t4067 t4137 t4202 t4203 t4207 t4208 t4209 t4210 t4214 t4255 t5003 t5300 t5310 t5317 t5318 t5322 t5409 t5410 t5505 t5510 t5516 t5525 t5526 t5545 t5562 t5572 t5601 t5604 t5605 t5614 t5616 t5617 t5702 t5811 t5813 t5814 t5815 t6006 t6008 t6036 t6041 t6112 t6120 t6132 t6134 t6135 t6300 t6500 t7001 t7003 t7004 t7011 t7060 t7064 t7112 t7300 t7400 t7401 t7403 t7405 t7406 t7407 t7408 t7409 t7410 t7411 t7412 t7413 t7414 t7415 t7416 t7417 t7418 t7419 t7506 t7507 t7508 t7610 t7613 t7700 t7701 t7800 t7810 t7811 t7814 t7815 t7816 t8001 t8012 t9300 t9350 t9902
|
|
#fixed 2
|
|
#success 18744
|
|
#failed 1392
|
|
#broken 236
|
|
#total 20841
|
|
|
|
cat << DONE
|
|
!!Make sure to configure the debug_server in \
|
|
~/config/settings/system/debug_server/settings:
|
|
executable_actions {
|
|
/sources/git-* kill
|
|
}
|
|
DONE
|
|
makeGit test
|
|
}
|