diff --git a/libs/_autotools/gnupg/gnupg-2.2.12-20190209.diff b/libs/_autotools/gnupg/gnupg-2.2.12-20190209.diff new file mode 100644 index 00000000..175fc743 --- /dev/null +++ b/libs/_autotools/gnupg/gnupg-2.2.12-20190209.diff @@ -0,0 +1,34 @@ +diff -Nrub -x '*~' -x '*\.rej' -x '*\.orig' -x '*\.o' -x '*\.pyc' gnupg-2.2.12.orig/configure.ac gnupg-2.2.12/configure.ac +--- gnupg-2.2.12.orig/configure.ac 2018-12-11 17:29:45.000000000 +0100 ++++ gnupg-2.2.12/configure.ac 2019-02-09 17:04:16.980827400 +0100 +@@ -75,7 +75,7 @@ + + NEED_SQLITE_VERSION=3.7 + +-development_version=mym4_isbeta ++development_version=no + PACKAGE=$PACKAGE_NAME + PACKAGE_GT=${PACKAGE_NAME}2 + VERSION=$PACKAGE_VERSION +diff -Nrub -x '*~' -x '*\.rej' -x '*\.orig' -x '*\.o' -x '*\.pyc' gnupg-2.2.12.orig/tests/gpgscm/scheme.c gnupg-2.2.12/tests/gpgscm/scheme.c +--- gnupg-2.2.12.orig/tests/gpgscm/scheme.c 2017-08-28 12:22:54.000000000 +0200 ++++ gnupg-2.2.12/tests/gpgscm/scheme.c 2019-02-09 17:02:15.012016600 +0100 +@@ -872,7 +872,7 @@ + { + #ifdef NDEBUG + fprintf(stderr, +- "insufficient reservation\n") ++ "insufficient reservation\n"); + #else + fprintf(stderr, + "insufficient %s reservation in line %d\n", +@@ -5615,7 +5615,9 @@ + sc->fcells = 0; + sc->inhibit_gc = GC_ENABLED; + sc->reserved_cells = 0; ++#ifndef NDEBUG + sc->reserved_lineno = 0; ++#endif + sc->no_memory=0; + sc->inport=sc->NIL; + sc->outport=sc->NIL; diff --git a/libs/_autotools/gnupg/gnupg.py b/libs/_autotools/gnupg/gnupg.py new file mode 100644 index 00000000..151aa9c2 --- /dev/null +++ b/libs/_autotools/gnupg/gnupg.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Copyright Hannah von Reth +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +import info +import re +import CraftCore + + +class subinfo(info.infoclass): + def setTargets( self ): + for ver in ["2.2.12"]: + self.targets[ver] = f"https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-{ver}.tar.bz2" + self.targetInstSrc[ver] = f"gnupg-{ver}" + + self.patchToApply["2.2.12"] = [("gnupg-2.2.12-20190209.diff", 1)] + self.targetDigests["2.2.12"] = (['db030f8b4c98640e91300d36d516f1f4f8fe09514a94ea9fc7411ee1a34082cb'], CraftHash.HashAlgorithm.SHA256) + + self.defaultTarget = "2.2.12" + + + def setDependencies( self ): + self.buildDependencies["dev-utils/msys"] = None + self.runtimeDependencies["virtual/base"] = None + self.runtimeDependencies["libs/gpg-error"] = None + self.runtimeDependencies["libs/assuan2"] = None + self.runtimeDependencies["libs/gcrypt"] = None + self.runtimeDependencies["libs/npth"] = None + self.runtimeDependencies["libs/libksba"] = None + +from Package.AutoToolsPackageBase import * + +class Package(AutoToolsPackageBase): + def __init__( self, **args ): + AutoToolsPackageBase.__init__( self ) + self.subinfo.options.configure.args += " --disable-doc " + diff --git a/libs/_autotools/libksba/libksba.py b/libs/_autotools/libksba/libksba.py new file mode 100644 index 00000000..62293382 --- /dev/null +++ b/libs/_autotools/libksba/libksba.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright Hannah von Reth +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +import info +import re +import CraftCore + + +class subinfo(info.infoclass): + def setTargets( self ): + for ver in ["1.3.5"]: + self.targets[ver] = f"https://www.gnupg.org/ftp/gcrypt/libksba/libksba-{ver}.tar.bz2" + self.targetInstSrc[ver] = f"libksba-{ver}" + + self.targetDigests[ "1.3.5" ] = (['41444fd7a6ff73a79ad9728f985e71c9ba8cd3e5e53358e70d5f066d35c1a340'], CraftHash.HashAlgorithm.SHA256) + + self.defaultTarget = "1.3.5" + + + def setDependencies( self ): + self.buildDependencies["dev-utils/msys"] = None + self.runtimeDependencies["virtual/base"] = None + +from Package.AutoToolsPackageBase import * + +class Package(AutoToolsPackageBase): + def __init__( self, **args ): + AutoToolsPackageBase.__init__( self ) + + def install(self): + self.subinfo.options.make.supportsMultijob = False + return super().install() diff --git a/libs/_autotools/npth/npth.py b/libs/_autotools/npth/npth.py new file mode 100644 index 00000000..7cefb480 --- /dev/null +++ b/libs/_autotools/npth/npth.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright Hannah von Reth +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +import info +import re +import CraftCore + + +class subinfo(info.infoclass): + def setTargets( self ): + for ver in ["1.6"]: + self.targets[ver] = f"https://www.gnupg.org/ftp/gcrypt/npth/npth-{ver}.tar.bz2" + self.targetInstSrc[ver] = f"npth-{ver}" + + self.targetDigests[ "1.6" ] = (['1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1'], CraftHash.HashAlgorithm.SHA256) + + self.defaultTarget = "1.6" + + + + def setDependencies( self ): + self.buildDependencies["dev-utils/msys"] = None + self.runtimeDependencies["virtual/base"] = None + +from Package.AutoToolsPackageBase import * + +class Package(AutoToolsPackageBase): + def __init__( self, **args ): + AutoToolsPackageBase.__init__( self ) + + def install(self): + self.subinfo.options.make.supportsMultijob = False + return super().install() +