X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx12.valuehost.ru (mx12.valuehost.ru [217.112.42.215]) by lists.alpinelinux.org (Postfix) with ESMTP id 3ACDE5C66B3 for ; Mon, 3 Dec 2018 10:54:13 +0000 (GMT) Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx12.valuehost.ru (Postfix) with ESMTP id D756F4C4A5 for ; Mon, 3 Dec 2018 13:54:10 +0300 (MSK) From: alpine-mips-patches Date: Mon, 3 Dec 2018 10:26:30 +0000 Subject: [alpine-aports] [PATCH] community/neko: fix build without git installed To: alpine-aports@lists.alpinelinux.org Message-Id: <20181203105410.D756F4C4A5@mx12.valuehost.ru> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Remove all targets that depend on git (source_archive and friends), none of them are used during normal build. --- community/neko/APKBUILD | 9 +- .../neko/remove-git-dependent-targets.patch | 110 ++++++++++++++++++ 2 files changed, 116 insertions(+), 3 deletions(-) create mode 100644 community/neko/remove-git-dependent-targets.patch diff --git a/community/neko/APKBUILD b/community/neko/APKBUILD index e5e3015d10..f6953af279 100644 --- a/community/neko/APKBUILD +++ b/community/neko/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Andy Li pkgname=neko pkgver=2.2.0 -pkgrel=3 +pkgrel=4 pkgdesc="High-level dynamically typed programming language" url="https://nekovm.org/" arch="all" @@ -15,7 +15,9 @@ options="" install="" subpackages="$pkgname-dev $pkgname-libs $pkgname-mysql $pkgname-ui $pkgname-apache2" -source="$pkgname-$pkgver.tar.gz::https://github.com/HaxeFoundation/neko/archive/v${pkgver//./-}.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/HaxeFoundation/neko/archive/v${pkgver//./-}.tar.gz + remove-git-dependent-targets.patch + " builddir="$srcdir/$pkgname-${pkgver//./-}" build() { @@ -65,4 +67,5 @@ apache2() { _mv_ndll mod_neko2 mod_tora2 } -sha512sums="4bc89fddf4a5ae94e73843b06a3b6fe8de59d72922764276a5bd9d56daf6570525e842039bf704598b41e1de4a5fe08931adc4ca9730fe3333be0beb7a1ccaed neko-2.2.0.tar.gz" +sha512sums="4bc89fddf4a5ae94e73843b06a3b6fe8de59d72922764276a5bd9d56daf6570525e842039bf704598b41e1de4a5fe08931adc4ca9730fe3333be0beb7a1ccaed neko-2.2.0.tar.gz +ed1aa657b385df7764b8e3a36edd56e7844ba0d326f79a48ab48f1b88868f3e4529e0e84f0dc9eeaae03e6b00fb2e7253afa10b2d56d677844cdbe9c72b81cc3 remove-git-dependent-targets.patch" diff --git a/community/neko/remove-git-dependent-targets.patch b/community/neko/remove-git-dependent-targets.patch new file mode 100644 index 0000000000..f05d766d85 --- /dev/null +++ b/community/neko/remove-git-dependent-targets.patch @@ -0,0 +1,110 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -194,9 +194,6 @@ + find_package(PkgConfig REQUIRED) + endif() + +-# git is used for source_archive and for applying patch +-find_package(Git REQUIRED) +- + # copy the lib/src folder to build directory + # (if it is a fat archive, there will be external libraries) + if(EXISTS ${CMAKE_SOURCE_DIR}/libs/src) +@@ -524,56 +521,6 @@ + + ####################### + +-# source_archive +-# We create our own source package target instead of using CPack's package_source. +-# One reason is that the CPack VS generator doesn't generate package_source target. +-# See https://cmake.org/Bug/view.php?id=13058 +- +-if (WIN32) +- set(source_archive_format zip) +-else() +- set(source_archive_format tar.gz) +-endif() +- +-set(source_archive_name_we neko-${NEKO_VERSION}-src) +-set(source_archive_name ${source_archive_name_we}.${source_archive_format}) +- +-add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_archive_name} +- COMMAND ${GIT_EXECUTABLE} archive --prefix=${source_archive_name_we}/ -o ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_archive_name} HEAD +- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} +- VERBATIM +-) +- +-add_custom_target(source_archive +- DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_archive_name} +-) +- +-# source_archive_fat +-# It is source_archive + STATIC_DEPS placed in libs/src. +- +-set(source_archive_fat_name_we neko-${NEKO_VERSION}-src-fat) +-set(source_archive_fat_name ${source_archive_fat_name_we}.${source_archive_format}) +- +-add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_archive_fat_name} +- COMMAND ${CMAKE_COMMAND} +- -Dsource_archive_name_we=${source_archive_name_we} +- -Dsource_archive=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_archive_name} +- -Dsource_archive_fat_name_we=${source_archive_fat_name_we} +- -Dsource_archive_fat_name=${source_archive_fat_name} +- -Dbin_dir=${CMAKE_BINARY_DIR} +- -Dsrc_dir=${CMAKE_SOURCE_DIR} +- -Dlib_src_dir=libs/src +- -P ${CMAKE_SOURCE_DIR}/cmake/source_archive_fat.cmake +- DEPENDS source_archive download_static_deps +- VERBATIM +-) +- +-add_custom_target(source_archive_fat +- DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_archive_fat_name} +-) +- +-####################### +- + # install target + + if (WIN32) +@@ -811,40 +758,6 @@ + set_tests_properties(-version test.n nekoc nekotools + PROPERTIES + ENVIRONMENT LD_LIBRARY_PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY} +- ) +-endif() +- +- +-####################### +- +-# debian source packages +- +-if(UNIX AND NOT APPLE) +- add_custom_target(upload_to_ppa +- COMMAND ${CMAKE_COMMAND} +- -Dsource_dir=${CMAKE_SOURCE_DIR} +- -Dbin_dir=${CMAKE_BINARY_DIR} +- -Dsource_archive=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${source_archive_fat_name} +- -DNEKO_VERSION=${NEKO_VERSION} +- -P ${CMAKE_SOURCE_DIR}/cmake/upload_to_ppa.cmake +- DEPENDS source_archive_fat +- ) +-endif() +- +- +-####################### +- +-# chocolatey +-if(WIN32) +- add_custom_target(package_choco +- COMMAND ${CMAKE_COMMAND} +- -Dsource_dir=${CMAKE_SOURCE_DIR} +- -Dbin_dir=${CMAKE_BINARY_DIR} +- -Dbin_archive=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${bin_archive_name} +- -Dbin_archive_name_we=${bin_archive_name_we} +- -DNEKO_VERSION=${NEKO_VERSION} +- -P ${CMAKE_SOURCE_DIR}/cmake/package_choco.cmake +- DEPENDS package + ) + endif() + -- 2.19.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---