commit 2d2dfc68aedaeeff5bc217865e141a5e312b17a2 Author: Jay Larson Date: Tue May 29 14:33:42 2018 -0500 First check in diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3483baf --- /dev/null +++ b/Makefile @@ -0,0 +1,79 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +ARCH = x86_64 +DEPENDS = dash,glibc,libgcc,libuv,libstdc++,ncurses +BUILDDEPS = coreutils,curl-dev,expat-dev,libarchive,libuv-dev +URL = https://cmake.org/ +REPO = dev +BRIEF = Tool for building and packages software +DESC = CMake is an open-source, cross-platform family of tools designed to \ +build, test and package software +SNAPVER = 0 + +ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) +TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') +SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') +PATCHDIR := $(PWD)/SRC/patches +VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER) + +include /usr/share/snap/Makefile.snaplinux + +$(SRCDIR)/configure: $(ARCHIVE) + @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ + tar -jxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-gzip' ]; then \ + tar -zxf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-tar' ]; then \ + tar -xf $(ARCHIVE); \ + elif [ '$(TYPE)' == 'application/x-xz' ]; then \ + tar -xf $(ARCHIVE); \ + else \ + echo 'Unable to determine archive type'; \ + exit 1; \ + fi + @touch $(SRCDIR)/configure + +$(SRCDIR)/config.log: $(SRCDIR)/configure + @cd $(SRCDIR) && \ + for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \ + patch --verbose -Np1 -i $$patch; \ + done + @cd $(SRCDIR); \ + ./configure \ + --prefix=/usr \ + --datadir=share/cmake \ + --docdir=doc/cmake \ + --system-libs \ + --no-system-jsoncpp \ + --no-system-librhash + +$(SRCDIR)/bin/cmake: $(SRCDIR)/config.log + @cd $(SRCDIR) && make + +$(ROOT): $(SRCDIR)/bin/cmake + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR) && make install DESTDIR=$(ROOT) + +test: $(ROOT) + @cd $(SRCDIR) && bin/ctest -j$$(nproc) + +clean: + @rm -rvf $(ROOT) \ + $(SNAPINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(SRCDIR) + diff --git a/SNAP/README b/SNAP/README new file mode 100644 index 0000000..cb756b1 --- /dev/null +++ b/SNAP/README @@ -0,0 +1,5 @@ +This is the directory where the manifest, snapinfo, +and files.tar.gz files will be created. It is also +where the usher file should be placed if it is +required by the package. Any other files that need +to be included could also be placed here. diff --git a/SRC/cmake-3.8.2-SHA-256.txt b/SRC/cmake-3.8.2-SHA-256.txt new file mode 100644 index 0000000..fa3bc13 --- /dev/null +++ b/SRC/cmake-3.8.2-SHA-256.txt @@ -0,0 +1,11 @@ +def1741fb795263ff5e1860dc0b98529f2d50455220043d3e7d0d19850e1e572 cmake-3.8.2-Darwin-x86_64.dmg +d164a1fa2a3d2f276c83ab55c7014b14b501b939d1a5a56f6788eb5cddc7acb6 cmake-3.8.2-Darwin-x86_64.tar.gz +bb26b1871f9e5c2fb73476186cc94d03b674608f704b48b94d617340b87b4d73 cmake-3.8.2-Linux-x86_64.sh +33e4851d3219b720f4b64fcf617151168f1bffdf5afad25eb4b7f5f58cee3a08 cmake-3.8.2-Linux-x86_64.tar.gz +2025aaebf98e4be835bb776a79a6d18bea0702521b13e006a5888dd790541b0c cmake-3.8.2-win32-x86.msi +3fa45a8ad473a8e0579ec826b3355f864750a7455987ed425a9c6fdf4820b5f2 cmake-3.8.2-win32-x86.zip +572cc86b3a50a2aa600ad02daffb4f454b5f26d4b7cd2f606fb263d5e5b39de9 cmake-3.8.2-win64-x64.msi +202c2416c964fb7199e5d7ce92336a44c7ba65d5ccca36246f41d7d09bd8ffe2 cmake-3.8.2-win64-x64.zip +c7d6ce2c84501554f11f1594219c44c778ddddbd3c65f6a934a35e5381892ee3 cmake-3.8.2.tar.Z +da3072794eb4c09f2d782fcee043847b99bb4cf8d4573978d9b2024214d6e92d cmake-3.8.2.tar.gz +4b40927383b84c1a8dfdca55dddfb8431486462c8df3439a74b6b22be135175b cmake-3.8.2.zip diff --git a/SRC/cmake-3.8.2-SHA-256.txt.asc b/SRC/cmake-3.8.2-SHA-256.txt.asc new file mode 100644 index 0000000..d0ae14d --- /dev/null +++ b/SRC/cmake-3.8.2-SHA-256.txt.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEExsJlMku+vcNQtRPQLSzvEDSSFoQFAlku3dAACgkQLSzvEDSS +FoQlqhAAlUmGBl3XEZXQYYmqdaNlxRqSO2Qu7UHTYDMZMF7HGu7AfEBvzXDEwJHP +E36jgfKIsvgX0zjtVXeDJaDuMhp0o05Rs+XW/uFKRiuYd/nXlMt6QGiZNT8sHOv7 +kZIoLmj4+b7wh/ziYlS4rof1FwGFzgm/kq0jnq+zZrdvfy9EbbzJJyr3UBtfhQJd +7d+nGtlAhe1cY/6DlhrDz5uaOAolz9SY+VZxuwOoqeSYI+3YrP53a2I7Bo5Zca7X +yLC522zwJ9DqQDcyQ6LKNywUx4oMQDEs+qLJY6Di0Pz2HjBIt0eclHaLpRv8Pibq +b1hkrR24zB9M6cx9vQvGSi6yeBdf+cMZYfB33RIuoiqt/ErHlMOj+AuIT5aPRn9i +gMi2WqE+3YzcrFCLyQbMcaelsjTkQYDVBUQEFXojCwneuzmlrpTtZfht+RFQzVdc +7CU0lpFREwgj+wwbDfRKosmqKK6+WIm7w587LGFT9uYpSB6/MWDUbvHaoz3OLveI +dfYqHtHxAzT302d1oziAO848Vuv6ccwijsk3rjdykjJErF88nISnrA/H0gl877ql +rixVkg38tj3OgJM899TG6807q+hrubMh1Sre+8vCwCogAR1TPF2aMnCzbjJkj1yn +sjMg11v9X5dYh8UszCiZ0bq3A5UB88cpQk9xcRLO1OFNcCkyNSs= +=Dsl3 +-----END PGP SIGNATURE----- diff --git a/SRC/cmake-3.8.2.tar.gz b/SRC/cmake-3.8.2.tar.gz new file mode 100644 index 0000000..7c5b04d Binary files /dev/null and b/SRC/cmake-3.8.2.tar.gz differ diff --git a/SRC/patches/README b/SRC/patches/README new file mode 100644 index 0000000..976577a --- /dev/null +++ b/SRC/patches/README @@ -0,0 +1,3 @@ +Place any patch files here and preface each with a +number indicating the order of execution. Patch +files are expected to use a .patch extension.