pkgsrc/devel/scmgit-base/Makefile
adam c44739ce94 Changes 1.7.6.1:
* Various codepaths that invoked zlib deflate/inflate assumed that these
  functions can compress or uncompress more than 4GB data in one call on
  platforms with 64-bit long, which has been corrected.
* "git unexecutable" reported that "unexecutable" was not found, even
  though the actual error was that "unexecutable" was found but did
  not have a proper she-bang line to be executed.
* Error exits from $PAGER were silently ignored.
* "git checkout -b <branch>" was confused when attempting to create a
  branch whose name ends with "-g" followed by hexadecimal digits,
  and refused to work.
* "git checkout -b <branch>" sometimes wrote a bogus reflog entry,
  causing later "git checkout -" to fail.
* "git diff --cc" learned to correctly ignore binary files.
* "git diff -c/--cc" mishandled a deletion that resolves a conflict, and
  looked in the working tree instead.
* "git fast-export" forgot to quote pathnames with unsafe characters
  in its output.
* "git fetch" over smart-http transport used to abort when the
  repository was updated between the initial connection and the
  subsequent object transfer.
* "git fetch" did not recurse into submodules in subdirectories.
* "git ls-tree" did not error out when asked to show a corrupt tree.
* "git pull" without any argument left an extra whitespace after the
  command name in its reflog.
* "git push --quiet" was not really quiet.
* "git rebase -i -p" incorrectly dropped commits from side branches.
* "git reset [<commit>] paths..." did not reset the index entry correctly
  for unmerged paths.
* "git submodule add" did not allow a relative repository path when
  the superproject did not have any default remote url.
* "git submodule foreach" failed to correctly give the standard input to
  the user-supplied command it invoked.
* submodules that the user has never showed interest in by running
  "git submodule init" was incorrectly marked as interesting by "git
  submodule sync".
* "git submodule update --quiet" was not really quiet.
* "git tag -l <glob>..." did not take multiple glob patterns from the
  command line.
2011-08-30 09:34:42 +00:00

95 lines
3 KiB
Makefile

# $NetBSD: Makefile,v 1.35 2011/08/30 09:34:42 adam Exp $
.include "../../devel/scmgit/Makefile.common"
PKGNAME= scmgit-base-${GIT_VERSION}
COMMENT= GIT Tree History Storage Tool (base package)
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS+= git<4.9.5nb1 # misc/git
DEPENDS+= p5-Error>=0.17015:../../devel/p5-Error
USE_LANGUAGES= c99
USE_TOOLS+= perl:run sh:run msgfmt
PERL5_CONFIGURE= no
PERL5_PACKLIST= auto/Git/.packlist
REPLACE_PERL+= *.perl */*.perl */*/*.perl
REPLACE_PERL+= contrib/hooks/update-paranoid
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
CONFIGURE_ARGS+= --with-curl=${BUILDLINK_PREFIX.curl}
CONFIGURE_ARGS+= --with-expat=${BUILDLINK_PREFIX.expat}
CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
BUILD_TARGET= all
REPLACE_SH+= contrib/hooks/post-receive-email
REPLACE_SH+= contrib/hooks/pre-auto-gc-battery
EGDIR= ${PREFIX}/share/examples/scmgit
GIT_COREDIR= git-core
GIT_TEMPLATEDIR= templates
GIT_TEMPLATES= description info/exclude
GIT_TEMPLATES+= hooks/applypatch-msg.sample hooks/commit-msg.sample
GIT_TEMPLATES+= hooks/post-commit.sample hooks/post-receive.sample
GIT_TEMPLATES+= hooks/post-update.sample hooks/pre-applypatch.sample
GIT_TEMPLATES+= hooks/pre-commit.sample hooks/pre-rebase.sample
GIT_TEMPLATES+= hooks/prepare-commit-msg.sample hooks/update.sample
# XXX unused as of now
#GIT_CORE_EXECDIR= libexec/${GIT_COREDIR}
GIT_CORE_DATADIR= share/${GIT_COREDIR}
GIT_CORE_TEMPLATEDIR= ${GIT_CORE_DATADIR}/${GIT_TEMPLATEDIR}
MAKE_DIRS= ${GIT_CORE_TEMPLATEDIR}
MAKE_DIRS+= ${GIT_CORE_TEMPLATEDIR}/hooks
MAKE_DIRS+= ${GIT_CORE_TEMPLATEDIR}/info
REQD_FILES+= ${GIT_TEMPLATES:@.t.@\
${EGDIR}/${GIT_TEMPLATEDIR}/${.t.}\
${PREFIX}/${GIT_CORE_TEMPLATEDIR}/${.t.}\
@:M*}
CONFIGURE_ENV+= HOME=${PREFIX}
CONFIGURE_ENV+= gitexecdir=${GITCOREDIR}
MAKE_FLAGS+= INSTALL=${INSTALL:Q}
GIT_TEMPLATE_INSTDIR= ${EGDIR}/${GIT_TEMPLATEDIR}
MAKE_ENV+= GIT_TEMPLATE_INSTDIR=${GIT_TEMPLATE_INSTDIR}
MESSAGE_SUBST+= GIT_TEMPLATE_INSTDIR=${GIT_TEMPLATE_INSTDIR}
SUBST_CLASSES+= fix-paths
SUBST_FILES.fix-paths= templates/hooks--post-receive.sample
SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames
SUBST_STAGE.fix-paths= pre-build
SUBST_VARS.fix-paths= PREFIX
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1" || ${OPSYS} == "HPUX" || ${OPSYS} == "QNX" || ${OPSYS} == "UnixWare"
SUBST_CLASSES+= fix-cd-P
SUBST_FILES.fix-cd-P= git-sh-setup.sh
SUBST_FILES.fix-cd-P+= t/test-lib.sh
SUBST_MESSAGE.fix-cd-P= Fixing cd arguments.
SUBST_STAGE.fix-cd-P= pre-build
SUBST_SED.fix-cd-P= -e "s/cd -P/cd/g"
.endif
.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/perl5/module.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"