diff options
-rw-r--r-- | dev-ada/aws/Manifest | 2 | ||||
-rw-r--r-- | dev-ada/aws/aws-22.0.0.ebuild | 57 | ||||
-rw-r--r-- | dev-ada/aws/files/aws-22.0.0-gentoo.patch | 33 |
3 files changed, 92 insertions, 0 deletions
diff --git a/dev-ada/aws/Manifest b/dev-ada/aws/Manifest index 3d0dc1992b4f..f83e6215016f 100644 --- a/dev-ada/aws/Manifest +++ b/dev-ada/aws/Manifest @@ -1,2 +1,4 @@ DIST aws-2020-20200429-19A9F-src.tar.gz 4120886 BLAKE2B 44156b532dd4382995e5b33eedbb39b4d4fa542f57f3a7d596875a25c1eb59c3e4cc0085cfc60f385566842f2b047086a66a966dc3b9dcd8f48ae7da0c07c01e SHA512 284331bcd07955737ebc6b95a0a72984ace55a1911f1ed809b0ba8e525b03df57a668ccd92d0edfde42be2e06c09a3225e84f5d0501a488a004eb3eeaa746a61 DIST aws-2021-20210518-19F65-src.tar.gz 4351625 BLAKE2B 227e1af5423c7cbf8b15b2ad37b5fbea862daca10dd12e79edb6cb1392f502b8b665d0cedc151a4190723c6aa795801b65c5807592d0292511a9a80318f0a722 SHA512 1820750daf2ba2e95479a8280aa0eae0d38e1d86a32570b4caaa845498ad8f0e8ac8c91f6aef0d5ef06fa1b33bc2b2b264cacb7101ca69fc81f36ab8cb17c65f +DIST aws-22.0.0.tar.gz 2356886 BLAKE2B 3f0a36ce23ed50855dddeb8ecc1888d51c4c7368990124c3d55f240c8b07cc72b59b4c172cad05d282de0ff4cd348ff912315d8cfad1582b2bbb049ad5fcea12 SHA512 6baeff7fa8012cb155bd3964177368f4ccd0bb367abaa66d44c0ffbcd4145f3930fe2e0fe5cfbeb41adccb7395d46c49acffc502878e9b83ecb5e2de597b897b +DIST templates-parser-22.0.0.tar.gz 224473 BLAKE2B c0c0d6feada3d0e54ee0456b48979e1f436c2bdf7210aeb061640c3128294b243ac21c29ef538b055871315b567640e37782b28057954bf4d43473d372c7d983 SHA512 9ce512e41bf3e682f1671d3ed931830d2279da9bef58f9997e430f4852cebb6119cabf0fde7dfaf999586155c13472ab258a0e0f3d885522aeb86d8acb4a2d4f diff --git a/dev-ada/aws/aws-22.0.0.ebuild b/dev-ada/aws/aws-22.0.0.ebuild new file mode 100644 index 000000000000..2ad9894c2821 --- /dev/null +++ b/dev-ada/aws/aws-22.0.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ADA_COMPAT=( gnat_202{0..1} ) +inherit ada multiprocessing + +DESCRIPTION="A complete Web development framework" +HOMEPAGE="http://libre.adacore.com/tools/aws/" +SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz + https://github.com/AdaCore/templates-parser/archive/refs/tags/v${PV}.tar.gz + -> templates-parser-${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-ada/gnatcoll-core:=[${ADA_USEDEP},shared,static-libs] + dev-libs/openssl" +DEPEND="${RDEPEND} + dev-ada/gprbuild[${ADA_USEDEP}]" + +REQUIRED_USE="${ADA_REQUIRED_USE}" + +PATCHES=( + "${FILESDIR}"/${PN}-2020-gentoo.patch + "${FILESDIR}"/${P}-gentoo.patch +) + +src_prepare() { + default + rmdir templates_parser || die + mv ../templates-parser-${PV} templates_parser || die +} + +src_configure() { + emake -j1 setup prefix=/usr ENABLE_SHARED=true \ + ZLIB=true SOCKET=openssl \ + GPRBUILD="/usr/bin/gprbuild -v" +} + +src_compile() { + emake \ + PROCESSORS=$(makeopts_jobs) ENABLE_SHARED=true \ + GPRBUILD="/usr/bin/gprbuild -v" +} + +src_install() { + emake install \ + DESTDIR="${D}" \ + PROCESSORS=$(makeopts_jobs) ENABLE_SHARED=true \ + GPRINSTALL="/usr/bin/gprinstall -v" + einstalldocs +} diff --git a/dev-ada/aws/files/aws-22.0.0-gentoo.patch b/dev-ada/aws/files/aws-22.0.0-gentoo.patch new file mode 100644 index 000000000000..868345504240 --- /dev/null +++ b/dev-ada/aws/files/aws-22.0.0-gentoo.patch @@ -0,0 +1,33 @@ +--- a/Makefile 2021-11-18 21:58:13.144841987 +0100 ++++ b/Makefile 2021-11-18 21:59:15.974876738 +0100 +@@ -185,10 +185,9 @@ + # build + + build-tools-native: +- $(GPRBUILD) -p $(GPROPTS) $(GPR_STATIC) tools/tools.gpr ++ $(GPRBUILD) -p $(GPROPTS) $(GPR_SHARED) tools/tools.gpr + + build-lib-native: +- $(GPRBUILD) -p $(GPROPTS) aws.gpr + ifeq (${ENABLE_SHARED}, true) + $(GPRBUILD) -p $(GPROPTS) $(GPR_SHARED) aws.gpr + endif +@@ -259,15 +258,15 @@ + --build-var=LIBRARY_TYPE --build-var=AWS_BUILD + + install-lib-native: +- $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) $(GPR_DEFAULT) \ +- --build-name=$(DEFAULT_LIBRARY_TYPE) aws.gpr + ifeq (${ENABLE_SHARED}, true) + $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) \ + $(GPR_OTHER) --build-name=$(OTHER_LIBRARY_TYPE) aws.gpr ++ $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) \ ++ $(GPR_OTHER) --build-name=$(OTHER_LIBRARY_TYPE) ssl/ssl.gpr + endif + + install-tools-native: +- $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) $(GPR_STATIC) --mode=usage \ ++ $(GPRINSTALL) $(GPROPTS) $(GPRINST_OPTS) $(GPR_SHARED) --mode=usage \ + --build-name=$(DEFAULT_LIBRARY_TYPE) \ + --install-name=aws tools/tools.gpr + |