From 8ab34a28a867bba430774a124d610ee1ef6d8a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 6 Jun 2021 10:02:52 +0700 Subject: [PATCH] cmake-bootstrap: remove package replaced by cmake. --- .../0002-Fix-undefined-cmake_doc_dir.patch | 18 ------ srcpkgs/cmake-bootstrap/template | 58 ------------------- srcpkgs/cmake-bootstrap/update | 1 - 3 files changed, 77 deletions(-) delete mode 100644 srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-cmake_doc_dir.patch delete mode 100644 srcpkgs/cmake-bootstrap/template delete mode 120000 srcpkgs/cmake-bootstrap/update diff --git a/srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-cmake_doc_dir.patch b/srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-cmake_doc_dir.patch deleted file mode 100644 index efbbfc41867..00000000000 --- a/srcpkgs/cmake-bootstrap/patches/0002-Fix-undefined-cmake_doc_dir.patch +++ /dev/null @@ -1,18 +0,0 @@ -Gives CMAKE_DOC_DIR undefined, this is half-baked cmake -so don't truly need ---- -diff --git Source/cmSystemTools.cxx Source/cmSystemTools.cxx -index 747cedc..7c516d8 100644 ---- Source/cmSystemTools.cxx -+++ Source/cmSystemTools.cxx -@@ -2171,10 +2171,6 @@ void cmSystemTools::FindCMakeResources(const char* argv0) - std::string const prefix = - exe_dir.substr(0, exe_dir.size() - cmStrLen(CMAKE_BIN_DIR)); - cmSystemToolsCMakeRoot = cmStrCat(prefix, CMAKE_DATA_DIR); -- if (cmSystemTools::FileExists( -- cmStrCat(prefix, CMAKE_DOC_DIR "/html/index.html"))) { -- cmSystemToolsHTMLDoc = cmStrCat(prefix, CMAKE_DOC_DIR "/html"); -- } - } - if (cmSystemToolsCMakeRoot.empty() || - !cmSystemTools::FileExists( diff --git a/srcpkgs/cmake-bootstrap/template b/srcpkgs/cmake-bootstrap/template deleted file mode 100644 index b1468b0d55b..00000000000 --- a/srcpkgs/cmake-bootstrap/template +++ /dev/null @@ -1,58 +0,0 @@ -# Template file for 'cmake-bootstrap' -pkgname=cmake-bootstrap -version=3.20.2 -revision=1 -wrksrc=cmake-$version -bootstrap=yes -build_style=configure -configure_args="--prefix=/usr --datadir=share/$pkgname --bindir=bin - --system-libs --no-system-curl --no-system-jsoncpp --no-system-nghttp2 - --no-system-librhash --no-system-libuv --no-system-expat --no-qt-gui - ${XBPS_MAKEJOBS:+--parallel=$XBPS_MAKEJOBS}" -make_build_args="-C Bootstrap.cmk DOCDIR=/usr/share/doc" -makedepends="libarchive-devel" -short_desc="CMake (for bootstrapping only, not for normal usage)" -maintainer="Đoàn Trần Công Danh " -license="LGPL-2.1-or-later, BSD-3-Clause" -homepage="https://www.cmake.org" -distfiles="https://www.cmake.org/files/v${version%.*}/cmake-${version}.tar.gz" -checksum=aecf6ecb975179eb3bb6a4a50cae192d41e92b9372b02300f9e8f1d5f559544e -conflicts="cmake>=0" - -CFLAGS="-DCMAKE_USE_SYSTEM_ZLIB -DCMAKE_USE_SYSTEM_LIBARCHIVE" -CXXFLAGS="$CFLAGS" - -post_patch() { - vsed -i -e '/exe_dir = CMAKE_BOOTSTRAP_BINARY_DIR/d' \ - -e '/ifndef CMAKE_BOOTSTRAP/{N;/Install tree/s/BOOTSTRAP/&_NO/}' \ - Source/cmSystemTools.cxx - vsed -i -e 's/[ ]RES=/ return /' \ - -e '/define CMAKE_BIN_DIR/s,/[a-z-]*,bin,' \ - -e "/define CMAKE_DATA_DIR/s,/[a-z-]*,share/$pkgname," \ - -e '/Run make to build bootstrap cmake/,$d' \ - bootstrap - rm -rf Utilities/cmbzip2 - rm -rf Utilities/cmcurl - rm -rf Utilities/cmexpat - rm -rf Utilities/cmlibarchive - rm -rf Utilities/cmliblzma - rm -rf Utilities/cmnghttp2 - rm -rf Utilities/cmzlib - rm -rf Utilities/cmzstd -} - -do_check() { - : "this is half baked cmake" -} - -do_install() { - vbin Bootstrap.cmk/cmake - vmkdir usr/share/$pkgname - vcopy Modules usr/share/$pkgname - vcopy Templates usr/share/$pkgname - - vlicense Copyright.txt - vlicense Utilities/KWIML/Copyright.txt KWIML-Copyright.txt - vlicense Utilities/cmlibuv/LICENSE libuv-LICENSE - vlicense Utilities/cmjsoncpp/LICENSE jsoncpp-LICENSE -} diff --git a/srcpkgs/cmake-bootstrap/update b/srcpkgs/cmake-bootstrap/update deleted file mode 120000 index c7f49c6a2d1..00000000000 --- a/srcpkgs/cmake-bootstrap/update +++ /dev/null @@ -1 +0,0 @@ -../cmake/update \ No newline at end of file