2013-05-31 14:39:57 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2013/05/31 12:40:57 wiz Exp $
|
2007-07-01 14:33:51 +02:00
|
|
|
|
2008-07-25 06:00:59 +02:00
|
|
|
DISTNAME= stgit-0.14.3
|
2013-05-31 14:39:57 +02:00
|
|
|
PKGREVISION= 6
|
2007-07-01 14:33:51 +02:00
|
|
|
CATEGORIES= devel
|
2008-04-10 14:11:34 +02:00
|
|
|
MASTER_SITES= http://homepage.ntlworld.com/cmarinas/stgit/
|
2007-07-01 14:33:51 +02:00
|
|
|
|
2011-02-28 15:52:37 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-07-01 14:33:51 +02:00
|
|
|
HOMEPAGE= http://www.procode.org/stgit/
|
|
|
|
COMMENT= Stacked GIT
|
2012-01-29 09:12:04 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2007-07-01 14:33:51 +02:00
|
|
|
|
2008-02-11 21:18:56 +01:00
|
|
|
BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
|
|
|
|
BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
|
2012-01-29 09:10:43 +01:00
|
|
|
DEPENDS+= scmgit-base>=1.5.2:../../devel/scmgit-base
|
Update to 20080128 snapshot. Quite a few bugs have been fixed since the
0.14.1 release (which I found to have some annoying bugs/quirks myself,
anyway).
The ChangeLog is extensive, so check it out for a full list--some important
changes follow below. While here, install the provided contrib helper
scripts. The bash dependency is OK, as git depends on it anyway.
In that spirit, add a dependency on devel/stgit-base, as this is useless
without it. Also, install examples in share/examples/stgit as per
convention.
Refactor --diff-opts handling
Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.
Don't keep old committer when rewriting a commit
replace "git repo-config" usage by "git config"
This is necessary since "git repo-config" will be removed soon.
Fix "stg edit --sign"
It worked in 0.14, but was broken some time after the release.
Make "stg goto" subdirectory safe
This is not specific to "stg goto" -- it affects all commands that
use the new infrastructure. (But of those, only goto and coalesce
were subdirectory unsafe.)
Make "stg commit" fancier
Allow the user to commit any patch. Changed behavior: with no
parameters, commit one applied patch, not all applied patches --
this is what uncommit does.
2008-01-31 00:03:50 +01:00
|
|
|
|
2008-02-11 21:18:56 +01:00
|
|
|
AUTO_MKDIRS= yes
|
2009-06-13 08:46:41 +02:00
|
|
|
USE_TOOLS+= bash:run perl gmake
|
2012-01-29 09:01:36 +01:00
|
|
|
USE_LANGUAGES= #none
|
Update to 20080128 snapshot. Quite a few bugs have been fixed since the
0.14.1 release (which I found to have some annoying bugs/quirks myself,
anyway).
The ChangeLog is extensive, so check it out for a full list--some important
changes follow below. While here, install the provided contrib helper
scripts. The bash dependency is OK, as git depends on it anyway.
In that spirit, add a dependency on devel/stgit-base, as this is useless
without it. Also, install examples in share/examples/stgit as per
convention.
Refactor --diff-opts handling
Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.
Don't keep old committer when rewriting a commit
replace "git repo-config" usage by "git config"
This is necessary since "git repo-config" will be removed soon.
Fix "stg edit --sign"
It worked in 0.14, but was broken some time after the release.
Make "stg goto" subdirectory safe
This is not specific to "stg goto" -- it affects all commands that
use the new infrastructure. (But of those, only goto and coalesce
were subdirectory unsafe.)
Make "stg commit" fancier
Allow the user to commit any patch. Changed behavior: with no
parameters, commit one applied patch, not all applied patches --
this is what uncommit does.
2008-01-31 00:03:50 +01:00
|
|
|
|
2008-02-11 21:18:56 +01:00
|
|
|
REPLACE_PERL= Documentation/build-docdep.perl
|
2009-06-13 08:46:41 +02:00
|
|
|
REPLACE_BASH= contrib/stg-*
|
Update to 20080128 snapshot. Quite a few bugs have been fixed since the
0.14.1 release (which I found to have some annoying bugs/quirks myself,
anyway).
The ChangeLog is extensive, so check it out for a full list--some important
changes follow below. While here, install the provided contrib helper
scripts. The bash dependency is OK, as git depends on it anyway.
In that spirit, add a dependency on devel/stgit-base, as this is useless
without it. Also, install examples in share/examples/stgit as per
convention.
Refactor --diff-opts handling
Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.
Don't keep old committer when rewriting a commit
replace "git repo-config" usage by "git config"
This is necessary since "git repo-config" will be removed soon.
Fix "stg edit --sign"
It worked in 0.14, but was broken some time after the release.
Make "stg goto" subdirectory safe
This is not specific to "stg goto" -- it affects all commands that
use the new infrastructure. (But of those, only goto and coalesce
were subdirectory unsafe.)
Make "stg commit" fancier
Allow the user to commit any patch. Changed behavior: with no
parameters, commit one applied patch, not all applied patches --
this is what uncommit does.
2008-01-31 00:03:50 +01:00
|
|
|
|
2008-02-11 21:18:56 +01:00
|
|
|
PYTHON_PATCH_SCRIPTS= *.py stgit/*.py stg
|
Update to 20080128 snapshot. Quite a few bugs have been fixed since the
0.14.1 release (which I found to have some annoying bugs/quirks myself,
anyway).
The ChangeLog is extensive, so check it out for a full list--some important
changes follow below. While here, install the provided contrib helper
scripts. The bash dependency is OK, as git depends on it anyway.
In that spirit, add a dependency on devel/stgit-base, as this is useless
without it. Also, install examples in share/examples/stgit as per
convention.
Refactor --diff-opts handling
Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.
Don't keep old committer when rewriting a commit
replace "git repo-config" usage by "git config"
This is necessary since "git repo-config" will be removed soon.
Fix "stg edit --sign"
It worked in 0.14, but was broken some time after the release.
Make "stg goto" subdirectory safe
This is not specific to "stg goto" -- it affects all commands that
use the new infrastructure. (But of those, only goto and coalesce
were subdirectory unsafe.)
Make "stg commit" fancier
Allow the user to commit any patch. Changed behavior: with no
parameters, commit one applied patch, not all applied patches --
this is what uncommit does.
2008-01-31 00:03:50 +01:00
|
|
|
PYSETUPINSTALLARGS= --prefix=${PREFIX}
|
2007-07-01 14:33:51 +02:00
|
|
|
|
2008-07-25 06:00:59 +02:00
|
|
|
MAKE_ENV+= ASCIIDOC=${PREFIX}/bin/asciidoc
|
2008-02-11 21:18:56 +01:00
|
|
|
MAKE_ENV+= ASCIIDOC_EXTRA=${ASCIIDOC_EXTRA:M*:Q}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.for d in asciidoc docbook-xsl
|
|
|
|
GITDOCDEP.${d}= ${${${PKG_INFO} -E ${d} || echo:L:sh}:L:C/[^[0-9]]*/ /g:[1..3]:ts.}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
ASCIIDOC_EXTRA= # empty
|
|
|
|
|
|
|
|
.if !empty(GITDOCDEP.asciidoc:M[8]*)
|
|
|
|
ASCIIDOC_EXTRA+= -a ascidoc7compatible
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(GITDOCDEP.docbook-xsl:M1.7[2-9]*)
|
|
|
|
ASCIIDOC_EXTRA+= -a docbook-xsl-172
|
|
|
|
.endif
|
|
|
|
|
2007-07-01 14:33:51 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
2012-01-29 09:01:36 +01:00
|
|
|
.include "../../lang/python/distutils.mk"
|
Update to 20080128 snapshot. Quite a few bugs have been fixed since the
0.14.1 release (which I found to have some annoying bugs/quirks myself,
anyway).
The ChangeLog is extensive, so check it out for a full list--some important
changes follow below. While here, install the provided contrib helper
scripts. The bash dependency is OK, as git depends on it anyway.
In that spirit, add a dependency on devel/stgit-base, as this is useless
without it. Also, install examples in share/examples/stgit as per
convention.
Refactor --diff-opts handling
Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.
Don't keep old committer when rewriting a commit
replace "git repo-config" usage by "git config"
This is necessary since "git repo-config" will be removed soon.
Fix "stg edit --sign"
It worked in 0.14, but was broken some time after the release.
Make "stg goto" subdirectory safe
This is not specific to "stg goto" -- it affects all commands that
use the new infrastructure. (But of those, only goto and coalesce
were subdirectory unsafe.)
Make "stg commit" fancier
Allow the user to commit any patch. Changed behavior: with no
parameters, commit one applied patch, not all applied patches --
this is what uncommit does.
2008-01-31 00:03:50 +01:00
|
|
|
|
2008-02-11 21:18:56 +01:00
|
|
|
pre-build:
|
|
|
|
cd ${WRKSRC}/Documentation && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} all
|
|
|
|
|
Update to 20080128 snapshot. Quite a few bugs have been fixed since the
0.14.1 release (which I found to have some annoying bugs/quirks myself,
anyway).
The ChangeLog is extensive, so check it out for a full list--some important
changes follow below. While here, install the provided contrib helper
scripts. The bash dependency is OK, as git depends on it anyway.
In that spirit, add a dependency on devel/stgit-base, as this is useless
without it. Also, install examples in share/examples/stgit as per
convention.
Refactor --diff-opts handling
Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.
Don't keep old committer when rewriting a commit
replace "git repo-config" usage by "git config"
This is necessary since "git repo-config" will be removed soon.
Fix "stg edit --sign"
It worked in 0.14, but was broken some time after the release.
Make "stg goto" subdirectory safe
This is not specific to "stg goto" -- it affects all commands that
use the new infrastructure. (But of those, only goto and coalesce
were subdirectory unsafe.)
Make "stg commit" fancier
Allow the user to commit any patch. Changed behavior: with no
parameters, commit one applied patch, not all applied patches --
this is what uncommit does.
2008-01-31 00:03:50 +01:00
|
|
|
pre-install:
|
|
|
|
${CHMOD} a-x ${WRKSRC}/contrib/stgbashprompt.sh
|
|
|
|
|
|
|
|
post-install:
|
2008-02-11 21:18:56 +01:00
|
|
|
cd ${WRKSRC}/contrib && \
|
|
|
|
${RM} -f *.orig && \
|
|
|
|
${INSTALL_SCRIPT} stg-* ${DESTDIR}${PREFIX}/bin
|
|
|
|
cd ${WRKSRC}/Documentation && \
|
|
|
|
${INSTALL_MAN} *.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && \
|
|
|
|
${INSTALL_DATA} *.html \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/html
|
Update to 20080128 snapshot. Quite a few bugs have been fixed since the
0.14.1 release (which I found to have some annoying bugs/quirks myself,
anyway).
The ChangeLog is extensive, so check it out for a full list--some important
changes follow below. While here, install the provided contrib helper
scripts. The bash dependency is OK, as git depends on it anyway.
In that spirit, add a dependency on devel/stgit-base, as this is useless
without it. Also, install examples in share/examples/stgit as per
convention.
Refactor --diff-opts handling
Lots of commands take a -O/--diff-opts flag, and they all handle it
identically. So break that out into a library function.
Don't keep old committer when rewriting a commit
replace "git repo-config" usage by "git config"
This is necessary since "git repo-config" will be removed soon.
Fix "stg edit --sign"
It worked in 0.14, but was broken some time after the release.
Make "stg goto" subdirectory safe
This is not specific to "stg goto" -- it affects all commands that
use the new infrastructure. (But of those, only goto and coalesce
were subdirectory unsafe.)
Make "stg commit" fancier
Allow the user to commit any patch. Changed behavior: with no
parameters, commit one applied patch, not all applied patches --
this is what uncommit does.
2008-01-31 00:03:50 +01:00
|
|
|
|
2007-07-01 14:33:51 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|