initial import
This commit is contained in:
58
cmake/PKGBUILD
Normal file
58
cmake/PKGBUILD
Normal file
@@ -0,0 +1,58 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=cmake
|
||||
pkgver=3.25.1
|
||||
_debver=$pkgver
|
||||
_debrel=1
|
||||
pkgrel=5
|
||||
pkgdesc="A cross-platform free software make system"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://www.cmake.org/'
|
||||
license=('Modified-BSD')
|
||||
depends=('curl' 'libarchive' 'shared-mime-info' 'jsoncpp' 'libuv' 'rhash')
|
||||
makedepends=('python-sphinx' 'quilt')
|
||||
source=("https://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/c/cmake/cmake_${_debver}-${_debrel}~bpo11+1.debian.tar.xz"
|
||||
"byacc.patch")
|
||||
sha512sums=('ec4203cac569e3c340bf6535d193d9ccff9c4e4d59a7a7ae5b9156172f647d9f9212bdc37b3c12cbd676b1351b9a64364c563aaa968a2f41e0f402410ed78d57'
|
||||
'e15a12081df435739b57087769f98bf5876280c20b6dfd929e456b69218672ea1060d3a2f07e3308052a85cab33fb46b8300ea7500b3bf865a9b7a8cc73c27aa'
|
||||
'd137a8261dac9bd0cf123427a61581f5b31982a31a30e488c6852e3781cc9e3672c32accfc1a7310bcc3e8c9d43f0e7edb259b4e130b416d4a5d00d23e133f1a')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
patch -p1 -i "$srcdir"/byacc.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
./bootstrap --prefix=/usr \
|
||||
--mandir=/share/man \
|
||||
--docdir=/share/doc/cmake \
|
||||
--datadir=/share/cmake \
|
||||
--sphinx-man \
|
||||
--sphinx-html \
|
||||
--system-libs \
|
||||
--parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
rm -r "$pkgdir"/usr/share/doc/cmake/html/_sources
|
||||
rm -rf "$pkgdir"/usr/share/emacs
|
||||
install -Dm644 Copyright.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
|
||||
}
|
||||
57
cmake/byacc.patch
Normal file
57
cmake/byacc.patch
Normal file
@@ -0,0 +1,57 @@
|
||||
--- a/Modules/FindBISON.cmake 2022-11-30 14:57:03.000000000 +0100
|
||||
+++ b/Modules/FindBISON.cmake 2022-12-16 19:47:44.417533396 +0100
|
||||
@@ -5,15 +5,15 @@
|
||||
FindBISON
|
||||
---------
|
||||
|
||||
-Find ``bison`` executable and provide a macro to generate custom build rules.
|
||||
+Find ``bison/byacc`` executable and provide a macro to generate custom build rules.
|
||||
|
||||
The module defines the following variables:
|
||||
|
||||
``BISON_EXECUTABLE``
|
||||
- path to the ``bison`` program
|
||||
+ path to the ``bison/byacc`` program
|
||||
|
||||
``BISON_VERSION``
|
||||
- version of ``bison``
|
||||
+ version of ``bison/byacc``
|
||||
|
||||
``BISON_FOUND``
|
||||
"True" if the program was found
|
||||
@@ -77,7 +77,7 @@
|
||||
The header file generated by bison
|
||||
|
||||
``BISON_<Name>_OUTPUTS``
|
||||
- All files generated by bison including the source, the header and the report
|
||||
+ All files generated by bison/byacc including the source, the header and the report
|
||||
|
||||
``BISON_<Name>_COMPILE_FLAGS``
|
||||
Options used in the ``bison`` command line
|
||||
@@ -92,7 +92,7 @@
|
||||
add_executable(Foo main.cpp ${BISON_MyParser_OUTPUTS})
|
||||
#]=======================================================================]
|
||||
|
||||
-find_program(BISON_EXECUTABLE NAMES bison win-bison win_bison DOC "path to the bison executable")
|
||||
+find_program(BISON_EXECUTABLE NAMES bison win_bison byacc yacc DOC "path to the bison/byacc executable")
|
||||
mark_as_advanced(BISON_EXECUTABLE)
|
||||
|
||||
if(BISON_EXECUTABLE)
|
||||
@@ -101,7 +101,7 @@
|
||||
set(_Bison_SAVED_LC_ALL "$ENV{LC_ALL}")
|
||||
set(ENV{LC_ALL} C)
|
||||
|
||||
- execute_process(COMMAND ${BISON_EXECUTABLE} --version
|
||||
+ execute_process(COMMAND ${BISON_EXECUTABLE} -V
|
||||
OUTPUT_VARIABLE BISON_version_output
|
||||
ERROR_VARIABLE BISON_version_error
|
||||
RESULT_VARIABLE BISON_version_result
|
||||
@@ -110,7 +110,7 @@
|
||||
set(ENV{LC_ALL} ${_Bison_SAVED_LC_ALL})
|
||||
|
||||
if(NOT ${BISON_version_result} EQUAL 0)
|
||||
- message(SEND_ERROR "Command \"${BISON_EXECUTABLE} --version\" failed with output:\n${BISON_version_error}")
|
||||
+ message(SEND_ERROR "Command \"${BISON_EXECUTABLE} -V\" failed with output:\n${BISON_version_error}")
|
||||
else()
|
||||
# Bison++
|
||||
if("${BISON_version_output}" MATCHES "^bison\\+\\+ Version ([^,]+)")
|
||||
Reference in New Issue
Block a user