Skip to content

Commit

Permalink
dev-ada/xmlada: Respect ADA (env vars)
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.5, Repoman-2.3.1
  • Loading branch information
atupone committed Jun 20, 2017
1 parent 2b6d45c commit 55c470a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
10 changes: 10 additions & 0 deletions dev-ada/xmlada/files/xmlada-2016-gentoo.patch
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@

# Rebuild the tests (and not the XML/Ada code itself)
test: force
--- xmlada-gpl-2016-src/shared.gpr.in.old 2017-06-20 21:22:08.312775803 +0200
+++ xmlada-gpl-2016-src/shared.gpr.in 2017-06-20 21:22:47.486201843 +0200
@@ -76,6 +76,7 @@
when "profile" =>
for Switches ("Ada") use warnings & ("-g", "-pg");
end case;
+ for Driver ("Ada") use External ("ADA", "gcc");
end compiler;

package binder is
10 changes: 10 additions & 0 deletions dev-ada/xmlada/files/xmlada-2017-gentoo.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- xmlada-gpl-2016-src/shared.gpr.in.old 2017-06-20 21:22:08.312775803 +0200
+++ xmlada-gpl-2016-src/shared.gpr.in 2017-06-20 21:22:47.486201843 +0200
@@ -76,6 +76,7 @@
when "profile" =>
for Switches ("Ada") use warnings & ("-g", "-pg");
end case;
+ for Driver ("Ada") use External ("ADA", "gcc");
end compiler;

package binder is
5 changes: 3 additions & 2 deletions dev-ada/xmlada/xmlada-2016.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ MYP=${PN}-gpl-${PV}

DESCRIPTION="Set of modules that provide a simple manipulation of XML streams"
HOMEPAGE="http://libre.adacore.com/"
SRC_URI="http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0 -> ${MYP}-src.tar.gz"
SRC_URI="http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0 ->
${MYP}-src.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+shared static static-pic"
REQUIRED_USE="|| ( shared static static-pic )"

RDEPEND="dev-lang/gnat-gpl:="
RDEPEND="dev-lang/gnat-gpl:*"
DEPEND="${RDEPEND}
dev-ada/gprbuild"

Expand Down
4 changes: 3 additions & 1 deletion dev-ada/xmlada/xmlada-2017.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ KEYWORDS="~amd64"
IUSE="+shared static static-pic"
REQUIRED_USE="|| ( shared static static-pic )"

RDEPEND="dev-lang/gnat-gpl:="
RDEPEND="dev-lang/gnat-gpl:*"
DEPEND="${RDEPEND}
dev-ada/gprbuild"

S="${WORKDIR}"/${MYP}-src

PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )

src_configure () {
econf --prefix="${D}"/usr
}
Expand Down
2 changes: 1 addition & 1 deletion dev-ada/xmlada/xmlada-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ KEYWORDS=""
IUSE="+shared static static-pic"
REQUIRED_USE="|| ( shared static static-pic )"

RDEPEND="dev-lang/gnat-gpl:="
RDEPEND="dev-lang/gnat-gpl:*"
DEPEND="${RDEPEND}
dev-ada/gprbuild"

Expand Down

0 comments on commit 55c470a

Please sign in to comment.