dev-ada/gnatcoll: Add tools use flag to build gnatcoll_db2ada
authorTupone Alfredo <tupone@gentoo.org>
Wed, 5 Jul 2017 20:26:56 +0000 (22:26 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Wed, 5 Jul 2017 20:27:21 +0000 (22:27 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

dev-ada/gnatcoll/files/gnatcoll-2016-gentoo.patch
dev-ada/gnatcoll/gnatcoll-2016.ebuild
dev-ada/gnatcoll/gnatcoll-2017.ebuild
dev-ada/gnatcoll/metadata.xml

index a54a7c1256679d0b329af199a15a68db7e856107..1a1d4d14eec256b18637f0b53f8386cf9e1b18fe 100644 (file)
  
  #######################################################################
  #  install
-@@ -53,7 +53,7 @@
- #######################################################################
- #  install
- 
--GPRINST_OPTS=-p -f --prefix=${prefix} --install-name=gnatcoll \
-+GPRINST_OPTS=-p -f --prefix=$(DESTDIR)${prefix} --install-name=gnatcoll \
-       --exec-subdir=${bindir} --project-subdir=lib/gnat \
-       --build-var=LIBRARY_TYPE --build-name=$(@F) -XLIBRARY_TYPE=$(@F)
- 
-@@ -73,9 +73,9 @@
-       ${GPRINSTALL} --mode=usage ${GPRINST_OPTS} -Psrc/gnatcoll_tools
- 
- install_gps_plugin: force
--      mkdir -p $(prefix)/share/gps/plug-ins
-+      mkdir -p $(DESTDIR)$(prefix)/share/gps/plug-ins
-       (cd distrib/ ; tar cf - gnatcoll) | \
--          (cd $(prefix)/share/gps/plug-ins ; tar xf -)
-+          (cd $(DESTDIR)$(prefix)/share/gps/plug-ins ; tar xf -)
- 
- # Regenerate part of the sources. Unfortunately, this can be run only after
- # we have build GNATCOLL, and then its tools, even though GNATCOLL itself
 --- gnatcoll-gpl-2015-src/src/gnatcoll_gmp.gpr.in.old  2017-01-07 08:52:14.921110195 +0100
 +++ gnatcoll-gpl-2015-src/src/gnatcoll_gmp.gpr.in      2017-01-07 08:55:35.718946607 +0100
 @@ -24,6 +24,7 @@
index 9ceb0858a42375d0c4b9bbc268a3bc43f3a75b04..165b27e6abd09e050d7becba84f328e2b4f1add9 100644 (file)
@@ -16,7 +16,7 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="gmp gnat_2016 gnat_2017 gtk iconv postgresql pygobject projects readline
-       +shared sqlite static syslog"
+       +shared sqlite static syslog tools"
 
 RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 )
        gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )
@@ -101,17 +101,24 @@ src_compile() {
                emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v GCC=${GCC} \
                        build_library_type/static
        fi
+       if use tools; then
+               emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v GCC=${GCC} \
+                       build_tools/static
+       fi
        python_fix_shebang .
 }
 
 src_install() {
        if use shared; then
-               emake DESTDIR="${D}" install_library_type/relocatable
+               emake prefix="${D}usr" install_library_type/relocatable
        fi
        if use static; then
-               emake DESTDIR="${D}" install_library_type/static
+               emake prefix="${D}usr" install_library_type/static
+       fi
+       if use tools; then
+               emake prefix="${D}usr" install_tools/static
        fi
-       emake DESTDIR="${D}" install_gps_plugin
+       emake prefix="${D}usr" install_gps_plugin
        einstalldocs
        dodoc -r features-* known-problems-*
        mv "${D}"/usr/share/doc/${PN}/GNATColl.pdf "${D}"/usr/share/doc/${PF}/
index 21b6e39c137f6a8cc36a658cd6beb866ae212b61..9656c9a094ebc6490b225fd7fa05485c506df1ed 100644 (file)
@@ -16,7 +16,7 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="gmp gnat_2016 gnat_2017 gtk iconv postgresql pygobject projects readline
-       +shared sqlite static syslog"
+       +shared sqlite static syslog tools"
 
 RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 )
        gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )
@@ -101,6 +101,10 @@ src_compile() {
                emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v GCC=${GCC} \
                        build_library_type/static
        fi
+       if use tools; then
+               emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v GCC=${GCC} \
+                       build_tools/static
+       fi
        python_fix_shebang .
 }
 
@@ -111,6 +115,9 @@ src_install() {
        if use static; then
                emake prefix="${D}usr" install_library_type/static
        fi
+       if use tools; then
+               emake prefix="${D}usr" install_tools/static
+       fi
        emake prefix="${D}usr" install_gps_plugin
        einstalldocs
 }
index a54b19b4b3ca1fadeb7808ccb80849b186591023..cca8442f43b84224702ac9d05d6fac0ae51f31c3 100644 (file)
                <flag name="pygobject">Adds support for pygobject</flag>
                <flag name="shared">Build shared library</flag>
                <flag name="static">Build static library</flag>
+               <flag name="tools">Build associated tools</flag>
        </use>
        <longdescription lang="en">
-               The reusable library known as the GNAT Component Collection (GNATColl) is based on one main principle: general-purpose packages that are part of the GNAT technology should also be available to GNAT user application code. The compiler front end, the GNAT Programming Studio (GPS) Interactive Development Environment, and the GNAT Tracker web-based interface all served as sources for the components.
+               The reusable library known as the GNAT Component Collection (GNATColl)
+               is based on one main principle: general-purpose packages that are part
+               of the GNAT technology should also be available to GNAT user
+               application code. The compiler front end, the GNAT Programming Studio
+               (GPS) Interactive Development Environment, and the GNAT Tracker
+               web-based interface all served as sources for the components.
 
-               The GNATColl components complement the predefined Ada and GNAT libraries and deal with a range of common programming issues including string and text processing, memory management, and file handling. Several of the components are especially useful in enterprise applications.
+               The GNATColl components complement the predefined Ada and GNAT
+               libraries and deal with a range of common programming issues including
+               string and text processing, memory management, and file handling.
+               Several of the components are especially useful in enterprise
+               applications.
        </longdescription>
 </pkgmetadata>