Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix git-svn #6340

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/git/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Fast, scalable, distributed revision control system"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.30.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://www.kernel.org/pub/software/scm/git/git-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=55735021109565721af805af382c45cce73c3cfaa59daad22443d1477d334d19
TERMUX_PKG_DEPENDS="libcurl, libiconv, less, openssl, pcre2, zlib"
Expand Down
4 changes: 4 additions & 0 deletions packages/git/git-svn.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TERMUX_SUBPKG_DESCRIPTION="Convert between Git and Subversion repositories"
TERMUX_SUBPKG_DEPENDS="subversion-perl"
TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true
TERMUX_SUBPKG_INCLUDE="libexec/git-core/git-svn"
17 changes: 16 additions & 1 deletion packages/subversion/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ TERMUX_PKG_DESCRIPTION="Centralized version control system characterized by its
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.14.0
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://www.apache.org/dist/subversion/subversion-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=6ba8e218f9f97a83a799e58a3c6da1221d034b18d9d8cbbcb6ec52ab11722102
TERMUX_PKG_DEPENDS="apr, apr-util, serf, libexpat, libsqlite, liblz4, utf8proc, zlib"
TERMUX_PKG_BUILD_DEPENDS="perl"
TERMUX_PKG_RECOMMENDS="subversion-perl"
TERMUX_PKG_BREAKS="subversion-dev"
TERMUX_PKG_REPLACES="subversion-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
Expand All @@ -18,3 +20,16 @@ svn_cv_pycfmt_apr_int64_t=UNUSED_REMOVE_AFTER_NEXT_UPDATE
termux_step_pre_configure() {
CFLAGS+=" -std=c11"
}

termux_step_post_make() {
if [ "$TERMUX_ARCH" = "x86_64" ]; then
make swig-pl
make check-swig-pl
fi
}

termux_step_post_make_install() {
if [ "$TERMUX_ARCH" = "x86_64" ]; then
make install-swig-pl
fi
}
8 changes: 8 additions & 0 deletions packages/subversion/subversion-perl.subpackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TERMUX_SUBPKG_DESCRIPTION="Subversion bundings for Perl"
TERMUX_SUBPKG_DEPENDS="perl"
TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true
TERMUX_SUBPKG_INCLUDE="
lib/*/perl5/*
lib/*/libsvn_swig_perl*.so.*
share/man/man3/SVN::*.3perl
"