diff --git a/dev-util/gambas/Manifest b/dev-util/gambas/Manifest index 0d6bcc6..7c8f317 100644 --- a/dev-util/gambas/Manifest +++ b/dev-util/gambas/Manifest @@ -1,2 +1,8 @@ DIST gambas3-3.7.1.tar.bz2 8410958 SHA256 71df3c36b45691c1295c403252ea4f02e47b21b332d39fc9c412e8f45a46f978 SHA512 1964a1512436a54e496c17701ab2d2702dd13f44a21d0c59b7844077d529c1a74edc9ec39d42b5078a372b1e57d7fdc923685564f38b38ebe2a8eafab87f0bd8 WHIRLPOOL 8405127cf98ab16202070d9387e5d8bee3d3900ab94f1e2b2be090747b94fc8c8f5fb246c0ea8a91ce9483e2e11c6eff9996660a5d087fed767a50d26039d173 DIST gambas3-3.8.4.tar.bz2 8694021 SHA256 ddac891fe7275c925c3e49d98c8dec1e7074046b44ea38e10909f41a125d681d SHA512 802e3f80f23df0d003b8c646bce0e436a77d8da716f59b4b864f9bdbe3c6a8e3cdd2be9733d04cc726c28db7c5d11182637c16251ad313fea9e7e74c9ba34e02 WHIRLPOOL c41badb838a36fda2863d0f340c6d2d05a414df621f46748a2cb444ae8b626dda916fdcf786b6b592a7d08a769daa42d77910248211d842835c8b760f15493c5 +AUX gambas-3.13.x-xdgutils.patch 1613 BLAKE2B cc5d4229586f97319484d97e9dd63524268b9a9805c8a68c2f9cc27f810b8b801f9ad6a956f0a21031465431d8454afaa530f99cd3e7da626714f2f295ab693a SHA512 87e9fc85b5684bf26473dab1f94015801f359bbf110b5719fca30810ceb602fae59d17ffca98311c9109fd4e38bdcbf957013c4820bb86a06b4af4cfd6f9f501 +AUX gambas-poppler-0.76.patch 3869 BLAKE2B 796b2eba64f01eeaa2baff8eb9f792a2d5f1b0c3599f312e42d0a71d5d2701c992885c4d95a11c92c42cc5754cea4b5a4d9070d28163ce4b1ae35b643fb48211 SHA512 dab805eb855ad5774833a9d040599c37b7154cf8ad065278d425ea4a23749c442e0585309e4c03f5f2be286398226ee7153f1060fd2e1025c3761e5ded7056df +AUX gambas-qt-5.13.patch 7199 BLAKE2B aec857ce58cede6b21dee79bffd2f8c986ea6276c46ab3e963c874f7724c90f847a0c89cb19d2ba6a8cdbfcef43829dc3e8853552bc3d26c19609c1abfa3db23 SHA512 f7f6c124886062a14ec5fc03d1985317349dcaa837222243364eb210413ba3060a2814c67de5715f0e829c642a2ba1a38072039741ebdeb268f05bbebbaebd38 +DIST gambas-3.13.0.tar.bz2 12157596 BLAKE2B 8d754f063b7668ae25eecc5883d655b3bd0551400873a851c1de58ab0ecef07621c1a300cc55b87d52233919095e8f4ea08e1f98439cffb2311cd16d77d5672f SHA512 5a7954df222a91f87926e6d96aca39b098cd3205f43d48557459e639ed4cf70bfb67c41a19d8296ec8f82acaa9a040549a99d4e1702f3fae2af381615a6cc84d +EBUILD gambas-3.13.0.ebuild 6724 BLAKE2B ebd6b3eeec5cbd43b047d4080bd629d5a763c6c8f48637e7d5757fe3cdcb1da86b506f5664b0c44cd9003f8e39f7f27ca1367fb843ba74b3680a33db94262c2b SHA512 d22f0a7980dcfb2a25a51da72eb35f8430ba823c6569696928bf967f534c9cc62ae45ba1d519770f51c651e1dda6a219448e2049a16d3c00fa147c52223eba54 +MISC metadata.xml 317 BLAKE2B a064dab932a673a4ccd23732ebc842cd57c3b9faca938fe291ad7286b5649ff5f3cd8ac1191b340e621a20f3888dcab3470ec041aae115e3cba0a9eab7b67068 SHA512 2b7cae78785fa166c52e6d3eba008543924b3b057ffce125c9afce60453dbde9e8b65546042de78bd48cf4697d6487213a281e7ccad4ac44a944b41d89f2387b diff --git a/dev-util/gambas/files/gambas-3.13.x-xdgutils.patch b/dev-util/gambas/files/gambas-3.13.x-xdgutils.patch new file mode 100644 index 0000000..1c87bd0 --- /dev/null +++ b/dev-util/gambas/files/gambas-3.13.x-xdgutils.patch @@ -0,0 +1,28 @@ +diff -Naur a/app/Makefile.am b/app/Makefile.am +--- a/app/Makefile.am 2019-08-03 18:16:24.939184972 -0400 ++++ b/app/Makefile.am 2019-08-03 18:16:58.222807012 -0400 +@@ -32,12 +32,6 @@ + @if test x"$(XDG_UTILS)" != x; then \ + $(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \ + cp -f $(srcdir)/mime/application-x-gambas*.png $(DESTDIR)$(gbdatadir)/icons; \ +- echo "Registering Gambas script mimetype..."; \ +- xdg-icon-resource install --context mimetypes --size 256 $(DESTDIR)$(gbdatadir)/icons/application-x-gambasscript.png application-x-gambasscript; \ +- xdg-mime install $(srcdir)/mime/application-x-gambasscript.xml; \ +- echo "Registering Gambas server page mimetype..."; \ +- xdg-icon-resource install --context mimetypes --size 256 $(DESTDIR)$(gbdatadir)/icons/application-x-gambasserverpage.png application-x-gambasserverpage; \ +- xdg-mime install $(srcdir)/mime/application-x-gambasserverpage.xml; \ + fi + + @echo "Installing the Gambas appdata file..." +diff -Naur a/main/Makefile.am b/main/Makefile.am +--- a/main/Makefile.am 2019-08-03 18:16:25.039195857 -0400 ++++ b/main/Makefile.am 2019-08-03 18:17:43.787765350 -0400 +@@ -42,8 +42,6 @@ + echo "Registering Gambas executable mimetype"; \ + $(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \ + cp -f $(srcdir)/mime/application-x-gambas3.png $(DESTDIR)$(gbdatadir)/icons; \ +- xdg-icon-resource install --context mimetypes --size 256 $(DESTDIR)$(gbdatadir)/icons/application-x-gambas3.png application-x-gambas3; \ +- xdg-mime install $(srcdir)/mime/application-x-gambas3.xml; \ + fi + + @echo "Creating the information files for gb component..." diff --git a/dev-util/gambas/files/gambas-poppler-0.76.patch b/dev-util/gambas/files/gambas-poppler-0.76.patch new file mode 100644 index 0000000..bf50eaf --- /dev/null +++ b/dev-util/gambas/files/gambas-poppler-0.76.patch @@ -0,0 +1,128 @@ +diff --git a/gb.pdf/src/CPdfDocument.cpp b/gb.pdf/src/CPdfDocument.cpp +index 0610a65d8..e54cb35b5 100644 +--- a/gb.pdf/src/CPdfDocument.cpp ++++ b/gb.pdf/src/CPdfDocument.cpp +@@ -40,7 +40,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -273,7 +272,7 @@ static uint32_t aux_get_page_from_action(void *_object, const_LinkAction *act) + if (dest->isPageRef() ) + { + pref= dest->getPageRef(); +- return THIS->doc->findPage(pref.num, pref.gen); ++ return THIS->doc->findPage(pref); + } + else + return dest->getPageNum(); +@@ -717,7 +716,7 @@ PDF document index + + BEGIN_PROPERTY(PDFDOCUMENT_has_index) + +- GB.ReturnBoolean(THIS->index && THIS->index->getLength()); ++ GB.ReturnBoolean(THIS->index && THIS->index->size()); + + END_PROPERTY + +@@ -725,14 +724,14 @@ BEGIN_PROPERTY(PDFDOCUMENT_index) + + if (!THIS->index) { GB.ReturnNull(); return; } + +- THIS->action=((OutlineItem*)THIS->index->get(THIS->currindex))->getAction(); ++ THIS->action=((*THIS->index)[THIS->currindex])->getAction(); + RETURN_SELF(); + + END_PROPERTY + + BEGIN_PROPERTY(PDFINDEX_count) + +- GB.ReturnInteger(THIS->index->getLength()); ++ GB.ReturnInteger(THIS->index->size()); + + END_PROPERTY + +@@ -740,8 +739,8 @@ BEGIN_PROPERTY(PDFINDEX_has_children) + + OutlineItem *item; + +- item = (OutlineItem *)THIS->index->get (THIS->currindex); +- GB.ReturnBoolean(item->getKids() && item->getKids()->getLength()); ++ item = (*THIS->index)[THIS->currindex]; ++ GB.ReturnBoolean(item->getKids() && item->getKids()->size()); + + END_PROPERTY + +@@ -749,7 +748,7 @@ BEGIN_PROPERTY(PDFINDEX_is_open) + + OutlineItem *item; + +- item = (OutlineItem *)THIS->index->get (THIS->currindex); ++ item = (*THIS->index)[THIS->currindex]; + + if (READ_PROPERTY) + { GB.ReturnBoolean(item->isOpen()); return; } +@@ -763,7 +762,7 @@ BEGIN_PROPERTY(PDFINDEX_title) + + OutlineItem *item; + +- item = (OutlineItem *)THIS->index->get (THIS->currindex); ++ item = (*THIS->index)[THIS->currindex]; + return_unicode_string(item->getTitle(), item->getTitleLength()); + + END_PROPERTY +@@ -792,7 +791,7 @@ END_METHOD + + BEGIN_METHOD_VOID(PDFINDEX_next) + +- if ( (THIS->currindex+1) >= (uint32_t)THIS->index->getLength() ) ++ if ( (THIS->currindex+1) >= (uint32_t)THIS->index->size() ) + { GB.ReturnBoolean(true); return; } + + THIS->currindex++; +@@ -804,9 +803,9 @@ BEGIN_METHOD_VOID(PDFINDEX_child) + + OutlineItem *item; + +- item = (OutlineItem *)THIS->index->get (THIS->currindex); ++ item = (*THIS->index)[THIS->currindex]; + +- if (!item->hasKids() || item->getKids()->getLength() == 0) { GB.ReturnBoolean(true); return; } ++ if (!item->hasKids() || item->getKids()->size() == 0) { GB.ReturnBoolean(true); return; } + + if (THIS->pindex) + { +@@ -833,7 +832,7 @@ BEGIN_METHOD_VOID(PDFINDEX_parent) + + if (!THIS->pindex) { GB.ReturnBoolean(true); return; } + +- THIS->index=(GooList*)THIS->pindex[GB.Count(POINTER(THIS->pindex))-1]; ++ THIS->index=(std::vector*)THIS->pindex[GB.Count(POINTER(THIS->pindex))-1]; + THIS->currindex=THIS->oldindex[GB.Count(POINTER(THIS->pindex))-1]; + if (GB.Count(POINTER(THIS->pindex))==1) + { +diff --git a/gb.pdf/src/CPdfDocument.h b/gb.pdf/src/CPdfDocument.h +index fa80d47a9..c616e325d 100644 +--- a/gb.pdf/src/CPdfDocument.h ++++ b/gb.pdf/src/CPdfDocument.h +@@ -29,7 +29,7 @@ + #include + #include + #include +-#include ++#include + #include + + #if POPPLER_VERSION_0_64 +@@ -93,7 +93,7 @@ typedef + uint currpage; + + void **pindex; // Parent of current index entries +- const_GooList *index; // Current entries ++ const std::vector *index; // Current entries + + uint currindex; // Current entry + uint *oldindex; // Parent entry diff --git a/dev-util/gambas/files/gambas-qt-5.13.patch b/dev-util/gambas/files/gambas-qt-5.13.patch new file mode 100644 index 0000000..8112169 --- /dev/null +++ b/dev-util/gambas/files/gambas-qt-5.13.patch @@ -0,0 +1,342 @@ +diff --git a/gb.qt4/src/CCheckBox.h b/gb.qt4/src/CCheckBox.h +index d20a11d94..b6de0fef7 100644 +--- a/gb.qt4/src/CCheckBox.h ++++ b/gb.qt4/src/CCheckBox.h +@@ -24,10 +24,10 @@ + #ifndef __CCHECKBOX_H + #define __CCHECKBOX_H + +-#include "gambas.h" +- + #include + ++#include "gambas.h" ++ + #include "CWidget.h" + + #ifndef __CCHECKBOX_CPP +diff --git a/gb.qt4/src/CClipboard.h b/gb.qt4/src/CClipboard.h +index 01b8048f5..b199c03fe 100644 +--- a/gb.qt4/src/CClipboard.h ++++ b/gb.qt4/src/CClipboard.h +@@ -24,11 +24,12 @@ + #ifndef __CCLIPBOARD_H + #define __CCLIPBOARD_H + ++#include ++#include ++ + #include "gambas.h" + #include "CWidget.h" + #include "CPicture.h" +-#include +-#include + + typedef + struct { +diff --git a/gb.qt4/src/CDrawingArea.h b/gb.qt4/src/CDrawingArea.h +index b693b5eb0..9884644bb 100644 +--- a/gb.qt4/src/CDrawingArea.h ++++ b/gb.qt4/src/CDrawingArea.h +@@ -24,13 +24,13 @@ + #ifndef __CDRAWINGAREA_H + #define __CDRAWINGAREA_H + +-#include "gambas.h" +- + #include + #include + #include + //#include + ++#include "gambas.h" ++ + #include "CWidget.h" + #include "CContainer.h" + +diff --git a/gb.qt4/src/CFrame.h b/gb.qt4/src/CFrame.h +index 1075ca99b..d2012d1b6 100644 +--- a/gb.qt4/src/CFrame.h ++++ b/gb.qt4/src/CFrame.h +@@ -24,13 +24,13 @@ + #ifndef __CFRAME_H + #define __CFRAME_H + ++#include ++ + #include "gambas.h" + + #include "CWidget.h" + #include "CContainer.h" + +-#include +- + #ifndef __CFRAME_CPP + extern GB_DESC CFrameDesc[]; + #else +diff --git a/gb.qt4/src/CLabel.h b/gb.qt4/src/CLabel.h +index 0ebc5d31c..530b56b51 100644 +--- a/gb.qt4/src/CLabel.h ++++ b/gb.qt4/src/CLabel.h +@@ -24,13 +24,13 @@ + #ifndef __CLABEL_H + #define __CLABEL_H + +-#include "gambas.h" +- + #include + #include + #include + #include + ++#include "gambas.h" ++ + #include "CWidget.h" + #include "CPicture.h" + #include "CContainer.h" +diff --git a/gb.qt4/src/CMenu.h b/gb.qt4/src/CMenu.h +index 50cb9b552..7d5d0d897 100644 +--- a/gb.qt4/src/CMenu.h ++++ b/gb.qt4/src/CMenu.h +@@ -24,8 +24,6 @@ + #ifndef __CMENU_H + #define __CMENU_H + +-#include "gambas.h" +- + #include + #include + #include +@@ -33,6 +31,8 @@ + #include + #include + ++#include "gambas.h" ++ + #include "CWidget.h" + #include "CPicture.h" + +diff --git a/gb.qt4/src/CRadioButton.h b/gb.qt4/src/CRadioButton.h +index f2f65c1dd..6ec0d6f54 100644 +--- a/gb.qt4/src/CRadioButton.h ++++ b/gb.qt4/src/CRadioButton.h +@@ -24,10 +24,10 @@ + #ifndef __CRADIOBUTTON_H + #define __CRADIOBUTTON_H + +-#include "gambas.h" +- + #include + ++#include "gambas.h" ++ + #include "CWidget.h" + + #ifndef __CRADIOBUTTON_CPP +diff --git a/gb.qt4/src/CSlider.h b/gb.qt4/src/CSlider.h +index d6e1a4d9a..5f0187907 100644 +--- a/gb.qt4/src/CSlider.h ++++ b/gb.qt4/src/CSlider.h +@@ -24,11 +24,13 @@ + #ifndef __CSLIDER_H + #define __CSLIDER_H + +-#include "gambas.h" +-#include "CWidget.h" + #include + #include + ++#include "gambas.h" ++ ++#include "CWidget.h" ++ + #ifndef __CSLIDER_CPP + + extern GB_DESC CSliderDesc[]; +diff --git a/gb.qt4/src/CTabStrip.h b/gb.qt4/src/CTabStrip.h +index d01d0c117..ca7ba2abb 100644 +--- a/gb.qt4/src/CTabStrip.h ++++ b/gb.qt4/src/CTabStrip.h +@@ -24,6 +24,10 @@ + #ifndef __CTABSTRIP_H + #define __CTABSTRIP_H + ++#include ++#include ++#include ++ + #include "gambas.h" + + #include "CWidget.h" +@@ -31,10 +35,6 @@ + #include "CPicture.h" + #include "CFont.h" + +-#include +-#include +-#include +- + #ifndef __CTABSTRIP_CPP + extern GB_DESC CTabStripDesc[]; + extern GB_DESC CTabStripContainerDesc[]; +diff --git a/gb.qt4/src/CTextArea.h b/gb.qt4/src/CTextArea.h +index 7abefa6fb..a2ffe9f3e 100644 +--- a/gb.qt4/src/CTextArea.h ++++ b/gb.qt4/src/CTextArea.h +@@ -24,12 +24,12 @@ + #ifndef __CTEXTAREA_H + #define __CTEXTAREA_H + ++#include ++ + #include "gambas.h" + + #include "CWidget.h" + +-#include +- + #ifndef __CTEXTAREA_CPP + extern GB_DESC CTextAreaDesc[]; + extern GB_DESC CTextAreaSelectionDesc[]; +diff --git a/gb.qt4/src/CTextBox.h b/gb.qt4/src/CTextBox.h +index 7df59df82..4b9f6e5ce 100644 +--- a/gb.qt4/src/CTextBox.h ++++ b/gb.qt4/src/CTextBox.h +@@ -24,11 +24,11 @@ + #ifndef __CTEXTBOX_H + #define __CTEXTBOX_H + +-#include "gambas.h" +- + #include + #include + ++#include "gambas.h" ++ + #include "CWidget.h" + + #ifndef __CTEXTBOX_CPP +diff --git a/gb.qt4/src/ctrayicon.h b/gb.qt4/src/ctrayicon.h +index d0781ccc4..a6bd9293b 100644 +--- a/gb.qt4/src/ctrayicon.h ++++ b/gb.qt4/src/ctrayicon.h +@@ -24,11 +24,12 @@ + #ifndef __CTRAYICON_H + #define __CTRAYICON_H + ++#include ++ + #include "gambas.h" + #include "main.h" + + #include "CPicture.h" +-#include + + #ifndef __CTRAYICON_CPP + extern GB_DESC TrayIconsDesc[]; +diff --git a/gb.qt4/src/ext/CDial.cpp b/gb.qt4/src/ext/CDial.cpp +index f572ba4bf..6fb783da1 100644 +--- a/gb.qt4/src/ext/CDial.cpp ++++ b/gb.qt4/src/ext/CDial.cpp +@@ -26,9 +26,6 @@ + #include "main.h" + #include "gambas.h" + +-#include +-#include +- + #include "CDial.h" + + DECLARE_EVENT(EVENT_Change); +diff --git a/gb.qt4/src/ext/CDial.h b/gb.qt4/src/ext/CDial.h +index eb396a5bb..723a486c2 100644 +--- a/gb.qt4/src/ext/CDial.h ++++ b/gb.qt4/src/ext/CDial.h +@@ -24,6 +24,9 @@ + #ifndef __CDIAL_H + #define __CDIAL_H + ++#include ++#include ++ + #include "gambas.h" + #include "../gb.qt.h" + +diff --git a/gb.qt4/src/ext/CTextEdit.h b/gb.qt4/src/ext/CTextEdit.h +index 98418e1be..9f2528032 100644 +--- a/gb.qt4/src/ext/CTextEdit.h ++++ b/gb.qt4/src/ext/CTextEdit.h +@@ -24,11 +24,11 @@ + #ifndef __CTEXTEDIT_H + #define __CTEXTEDIT_H + ++#include ++ + #include "gambas.h" + #include "../gb.qt.h" + +-#include +- + #ifndef __CTEXTEDIT_CPP + extern GB_DESC CTextEditSelectionDesc[]; + extern GB_DESC CTextEditFormatDesc[]; +diff --git a/gb.qt4/src/main.h b/gb.qt4/src/main.h +index d6311876d..568663c97 100644 +--- a/gb.qt4/src/main.h ++++ b/gb.qt4/src/main.h +@@ -24,9 +24,6 @@ + #ifndef __MAIN_H + #define __MAIN_H + +-#include "gb_common.h" +-#include "gambas.h" +- + #include + #include + #include +@@ -35,6 +32,9 @@ + #include + #include + ++#include "gb_common.h" ++#include "gambas.h" ++ + #define DO_NOT_USE_QT_INTERFACE + #include "gb.qt.h" + #include "gb.image.h" +diff --git a/gb.qt4/src/webkit/ccookiejar.h b/gb.qt4/src/webkit/ccookiejar.h +index 2de32cd8f..468b7a99b 100644 +--- a/gb.qt4/src/webkit/ccookiejar.h ++++ b/gb.qt4/src/webkit/ccookiejar.h +@@ -24,12 +24,12 @@ + #ifndef __CCOOKIEJAR_H + #define __CCOOKIEJAR_H + +-#include "main.h" +- + #include + #include + #include + ++#include "main.h" ++ + #ifndef __CCOOKIEJAR_CPP + + extern GB_DESC CookieDesc[]; +diff --git a/gb.qt5/src/opengl/CGLarea.h b/gb.qt5/src/opengl/CGLarea.h +index 0c6020cef..c8e5aa835 100644 +--- a/gb.qt5/src/opengl/CGLarea.h ++++ b/gb.qt5/src/opengl/CGLarea.h +@@ -24,10 +24,10 @@ + #ifndef __CGLAREA_H + #define __CGLAREA_H + +-#include "main.h" +- + #include + ++#include "main.h" ++ + typedef + struct { + QT_WIDGET widget; diff --git a/dev-util/gambas/gambas-3.13.0.ebuild b/dev-util/gambas/gambas-3.13.0.ebuild new file mode 100644 index 0000000..a3c8fc2 --- /dev/null +++ b/dev-util/gambas/gambas-3.13.0.ebuild @@ -0,0 +1,246 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools desktop gnome2-utils xdg-utils + +SLOT=3 +MY_PN="${PN}${SLOT}" + +DESCRIPTION="Gambas is a free development environment based on a Basic interpreter with object extensions" +HOMEPAGE="http://gambas.sourceforge.net" + +SRC_URI="https://gitlab.com/gambas/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~x86-linux" + +IUSE="+curl +net +x11 + bzip2 cairo crypt dbus examples gmp gnome gsl gstreamer gtk2 gtk3 httpd image-imlib image-io jit libxml mime + mysql ncurses odbc openal opengl openssl pcre pdf pop3 postgres qt5 sdl sdl-sound sdl2 sqlite v4l xml zlib" + +# gambas3 have the only one gui. it is based on qt5. +# these use flags (modules/plugins) require this qt5 gui to be present at the system to work properly: +# cairo gnome gstreamer gtk2 gtk3 imageimlib imageio opengl pdf sdl sdl2 v4l + +REQUIRED_USE="cairo? ( qt5 x11 ) + gnome? ( qt5 x11 ) + gstreamer? ( qt5 x11 ) + gtk2? ( qt5 x11 ) + gtk3? ( qt5 x11 ) + image-imlib? ( qt5 x11 ) + image-io? ( qt5 x11 ) + net? ( curl + pop3? ( mime ) ) + opengl? ( qt5 x11 ) + pdf? ( qt5 x11 ) + qt5? ( x11 ) + sdl? ( qt5 x11 ) + sdl-sound? ( sdl ) + sdl2? ( qt5 x11 ) + v4l? ( qt5 x11 )" + +RDEPEND="bzip2? ( app-arch/bzip2 ) + cairo? ( x11-libs/cairo ) + curl? ( net-misc/curl ) + dbus? ( sys-apps/dbus ) + gnome? ( gnome-base/gnome-keyring ) + gmp? ( dev-libs/gmp ) + gsl? ( sci-libs/gsl ) + gstreamer? ( media-libs/gst-plugins-base + media-libs/gstreamer ) + gtk2? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + jit? ( sys-devel/llvm ) + image-imlib? ( media-libs/imlib2 ) + image-io? ( dev-libs/glib + x11-libs/gdk-pixbuf ) + libxml? ( dev-libs/libxml2 ) + mime? ( dev-libs/gmime ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + odbc? ( dev-db/unixODBC ) + openal? ( media-libs/openal ) + opengl? ( media-libs/mesa ) + openssl? ( dev-libs/openssl ) + pcre? ( dev-libs/libpcre ) + pdf? ( app-text/poppler:0= ) + postgres? ( dev-db/postgresql ) + qt5? ( + >=dev-qt/qtcore-5.4.0:5 + >=dev-qt/qtopengl-5.4.0:5 + >=dev-qt/qtwebkit-5.4.0:5 + ) + sdl? ( media-libs/libsdl[opengl] + media-libs/sdl-image + media-libs/sdl-ttf ) + sdl-sound? ( media-libs/sdl-mixer ) + sdl2? ( media-libs/libsdl2 + media-libs/sdl2-image + media-libs/sdl2-mixer ) + v4l? ( virtual/jpeg:0 + media-libs/libpng ) + x11? ( x11-libs/libX11 + x11-libs/libXtst ) + xml? ( dev-libs/libxml2 + dev-libs/libxslt ) + zlib? ( sys-libs/zlib )" + +DEPEND="${RDEPEND} + virtual/libintl" + +autocrap_cleanup() { + sed -e "/^\(AC\|GB\)_CONFIG_SUBDIRS(${1}[,)]/d" \ + -i "${S}/configure.ac" || die + sed -e "/^ \(@${1}_dir@\|${1}\)/d" \ + -i "${S}/Makefile.am" || die +} + +PATCHES=( + "${FILESDIR}/${PN}-3.13.x-xdgutils.patch" + "${FILESDIR}/${PN}-poppler-0.76.patch" +) +DOCS=( AUTHORS ChangeLog NEWS README ) + +src_prepare() { + # deprecated + autocrap_cleanup sqlite2 + + use_if_iuse bzip2 || autocrap_cleanup bzlib2 + use_if_iuse cairo || autocrap_cleanup cairo + use_if_iuse crypt || autocrap_cleanup crypt + use_if_iuse curl || autocrap_cleanup curl + use_if_iuse dbus || autocrap_cleanup dbus + use_if_iuse examples || autocrap_cleanup examples + use_if_iuse gsl || autocrap_cleanup gsl + use_if_iuse gmp || autocrap_cleanup gmp + use_if_iuse gnome || autocrap_cleanup keyring + use_if_iuse gstreamer || autocrap_cleanup media + use_if_iuse gtk2 || autocrap_cleanup gtk + use_if_iuse gtk3 || autocrap_cleanup gtk3 + use_if_iuse httpd || autocrap_cleanup httpd + use_if_iuse image-imlib || autocrap_cleanup imageimlib + use_if_iuse image-io || autocrap_cleanup imageio + use_if_iuse jit || autocrap_cleanup jit + use_if_iuse libxml || autocrap_cleanup libxml + use_if_iuse mime || autocrap_cleanup mime + use_if_iuse mysql || autocrap_cleanup mysql + use_if_iuse ncurses || autocrap_cleanup ncurses + use_if_iuse net || autocrap_cleanup net + use_if_iuse odbc || autocrap_cleanup odbc + use_if_iuse openal || autocrap_cleanup openal + use_if_iuse opengl || autocrap_cleanup opengl + use_if_iuse openssl || autocrap_cleanup openssl + use_if_iuse pcre || autocrap_cleanup pcre + use_if_iuse pdf || autocrap_cleanup pdf + use_if_iuse postgres || autocrap_cleanup postgresql + use_if_iuse qt5 || autocrap_cleanup qt5 + use_if_iuse sdl || autocrap_cleanup sdl + use_if_iuse sdl-sound || autocrap_cleanup sdlsound + use_if_iuse sdl2 || autocrap_cleanup sdl2 + use_if_iuse sqlite || autocrap_cleanup sqlite + use_if_iuse v4l || autocrap_cleanup v4l + use_if_iuse x11 || autocrap_cleanup x11 + use_if_iuse xml || autocrap_cleanup xml + use_if_iuse zlib || autocrap_cleanup zlib + + has_version ">=dev-qt/qtcore-5.13.0" && PATCHES+=( "${FILESDIR}/${PN}-qt-5.13.patch" ) + + default_src_prepare + eautoreconf +} + +src_configure() { + econf $(use_enable bzip2 bzlib2) \ + $(use_enable cairo) \ + $(use_enable crypt) \ + $(use_enable curl) \ + $(use_enable dbus) \ + $(use_enable examples) \ + $(use_enable gmp) \ + $(use_enable gnome keyring) \ + $(use_enable gsl) \ + $(use_enable gstreamer media) \ + $(use_enable gtk2) \ + $(use_enable gtk3) \ + $(use_enable httpd) \ + $(use_enable image-imlib imageimlib) \ + $(use_enable image-io imageio) \ + $(use_enable jit) \ + $(use_enable libxml) \ + $(use_enable mime) \ + $(use_enable mysql) \ + $(use_enable ncurses) \ + $(use_enable net) \ + $(use_enable odbc) \ + $(use_enable openal) \ + $(use_enable opengl) \ + $(use_enable openssl) \ + $(use_enable pcre) \ + $(use_enable pdf) \ + $(use_enable postgres postgresql) \ + $(use_enable qt5) \ + $(use_enable sdl) \ + $(use_enable sdl-sound sdlsound) \ + $(use_enable sqlite sqlite3) \ + $(use_enable v4l) \ + $(use_enable x11) \ + $(use_enable xml) \ + $(use_enable zlib) \ + --disable-qt4 +} + +src_install() { + emake DESTDIR="${D}" install -j1 + + einstalldocs + + if use net ; then + newdoc gb.net/src/doc/README gb.net-README + newdoc gb.net/src/doc/changes.txt gb.net-ChangeLog + fi + + if use pcre ; then + newdoc gb.pcre/src/README gb.pcre-README + fi + + if use qt5 ; then + doicon "${S}/app/desktop/${MY_PN}.svg" + domenu "${S}/app/desktop/${MY_PN}.desktop" + + doicon -s 64 -c mimetypes \ + "${S}/app/mime/application-x-gambasscript.png" \ + "${S}/app/mime/application-x-gambasserverpage.png" \ + "${S}/main/mime/application-x-gambas3.png" + + insinto /usr/share/mime/application + doins "${S}/app/mime/application-x-gambasscript.xml" \ + "${S}/app/mime/application-x-gambasserverpage.xml" \ + "${S}/main/mime/application-x-gambas3.xml" + fi +} + +pkg_preinst() { + if use qt5 ; then + gnome2_icon_savelist + fi +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mime_database_update + + if use qt5 ; then + gnome2_icon_cache_update + fi +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mime_database_update + + if use qt5 ; then + gnome2_icon_cache_update + fi +} diff --git a/dev-util/gambas/gambas-3.14.3.ebuild b/dev-util/gambas/gambas-3.14.3.ebuild new file mode 100644 index 0000000..a3c8fc2 --- /dev/null +++ b/dev-util/gambas/gambas-3.14.3.ebuild @@ -0,0 +1,246 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools desktop gnome2-utils xdg-utils + +SLOT=3 +MY_PN="${PN}${SLOT}" + +DESCRIPTION="Gambas is a free development environment based on a Basic interpreter with object extensions" +HOMEPAGE="http://gambas.sourceforge.net" + +SRC_URI="https://gitlab.com/gambas/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~x86-linux" + +IUSE="+curl +net +x11 + bzip2 cairo crypt dbus examples gmp gnome gsl gstreamer gtk2 gtk3 httpd image-imlib image-io jit libxml mime + mysql ncurses odbc openal opengl openssl pcre pdf pop3 postgres qt5 sdl sdl-sound sdl2 sqlite v4l xml zlib" + +# gambas3 have the only one gui. it is based on qt5. +# these use flags (modules/plugins) require this qt5 gui to be present at the system to work properly: +# cairo gnome gstreamer gtk2 gtk3 imageimlib imageio opengl pdf sdl sdl2 v4l + +REQUIRED_USE="cairo? ( qt5 x11 ) + gnome? ( qt5 x11 ) + gstreamer? ( qt5 x11 ) + gtk2? ( qt5 x11 ) + gtk3? ( qt5 x11 ) + image-imlib? ( qt5 x11 ) + image-io? ( qt5 x11 ) + net? ( curl + pop3? ( mime ) ) + opengl? ( qt5 x11 ) + pdf? ( qt5 x11 ) + qt5? ( x11 ) + sdl? ( qt5 x11 ) + sdl-sound? ( sdl ) + sdl2? ( qt5 x11 ) + v4l? ( qt5 x11 )" + +RDEPEND="bzip2? ( app-arch/bzip2 ) + cairo? ( x11-libs/cairo ) + curl? ( net-misc/curl ) + dbus? ( sys-apps/dbus ) + gnome? ( gnome-base/gnome-keyring ) + gmp? ( dev-libs/gmp ) + gsl? ( sci-libs/gsl ) + gstreamer? ( media-libs/gst-plugins-base + media-libs/gstreamer ) + gtk2? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + jit? ( sys-devel/llvm ) + image-imlib? ( media-libs/imlib2 ) + image-io? ( dev-libs/glib + x11-libs/gdk-pixbuf ) + libxml? ( dev-libs/libxml2 ) + mime? ( dev-libs/gmime ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + odbc? ( dev-db/unixODBC ) + openal? ( media-libs/openal ) + opengl? ( media-libs/mesa ) + openssl? ( dev-libs/openssl ) + pcre? ( dev-libs/libpcre ) + pdf? ( app-text/poppler:0= ) + postgres? ( dev-db/postgresql ) + qt5? ( + >=dev-qt/qtcore-5.4.0:5 + >=dev-qt/qtopengl-5.4.0:5 + >=dev-qt/qtwebkit-5.4.0:5 + ) + sdl? ( media-libs/libsdl[opengl] + media-libs/sdl-image + media-libs/sdl-ttf ) + sdl-sound? ( media-libs/sdl-mixer ) + sdl2? ( media-libs/libsdl2 + media-libs/sdl2-image + media-libs/sdl2-mixer ) + v4l? ( virtual/jpeg:0 + media-libs/libpng ) + x11? ( x11-libs/libX11 + x11-libs/libXtst ) + xml? ( dev-libs/libxml2 + dev-libs/libxslt ) + zlib? ( sys-libs/zlib )" + +DEPEND="${RDEPEND} + virtual/libintl" + +autocrap_cleanup() { + sed -e "/^\(AC\|GB\)_CONFIG_SUBDIRS(${1}[,)]/d" \ + -i "${S}/configure.ac" || die + sed -e "/^ \(@${1}_dir@\|${1}\)/d" \ + -i "${S}/Makefile.am" || die +} + +PATCHES=( + "${FILESDIR}/${PN}-3.13.x-xdgutils.patch" + "${FILESDIR}/${PN}-poppler-0.76.patch" +) +DOCS=( AUTHORS ChangeLog NEWS README ) + +src_prepare() { + # deprecated + autocrap_cleanup sqlite2 + + use_if_iuse bzip2 || autocrap_cleanup bzlib2 + use_if_iuse cairo || autocrap_cleanup cairo + use_if_iuse crypt || autocrap_cleanup crypt + use_if_iuse curl || autocrap_cleanup curl + use_if_iuse dbus || autocrap_cleanup dbus + use_if_iuse examples || autocrap_cleanup examples + use_if_iuse gsl || autocrap_cleanup gsl + use_if_iuse gmp || autocrap_cleanup gmp + use_if_iuse gnome || autocrap_cleanup keyring + use_if_iuse gstreamer || autocrap_cleanup media + use_if_iuse gtk2 || autocrap_cleanup gtk + use_if_iuse gtk3 || autocrap_cleanup gtk3 + use_if_iuse httpd || autocrap_cleanup httpd + use_if_iuse image-imlib || autocrap_cleanup imageimlib + use_if_iuse image-io || autocrap_cleanup imageio + use_if_iuse jit || autocrap_cleanup jit + use_if_iuse libxml || autocrap_cleanup libxml + use_if_iuse mime || autocrap_cleanup mime + use_if_iuse mysql || autocrap_cleanup mysql + use_if_iuse ncurses || autocrap_cleanup ncurses + use_if_iuse net || autocrap_cleanup net + use_if_iuse odbc || autocrap_cleanup odbc + use_if_iuse openal || autocrap_cleanup openal + use_if_iuse opengl || autocrap_cleanup opengl + use_if_iuse openssl || autocrap_cleanup openssl + use_if_iuse pcre || autocrap_cleanup pcre + use_if_iuse pdf || autocrap_cleanup pdf + use_if_iuse postgres || autocrap_cleanup postgresql + use_if_iuse qt5 || autocrap_cleanup qt5 + use_if_iuse sdl || autocrap_cleanup sdl + use_if_iuse sdl-sound || autocrap_cleanup sdlsound + use_if_iuse sdl2 || autocrap_cleanup sdl2 + use_if_iuse sqlite || autocrap_cleanup sqlite + use_if_iuse v4l || autocrap_cleanup v4l + use_if_iuse x11 || autocrap_cleanup x11 + use_if_iuse xml || autocrap_cleanup xml + use_if_iuse zlib || autocrap_cleanup zlib + + has_version ">=dev-qt/qtcore-5.13.0" && PATCHES+=( "${FILESDIR}/${PN}-qt-5.13.patch" ) + + default_src_prepare + eautoreconf +} + +src_configure() { + econf $(use_enable bzip2 bzlib2) \ + $(use_enable cairo) \ + $(use_enable crypt) \ + $(use_enable curl) \ + $(use_enable dbus) \ + $(use_enable examples) \ + $(use_enable gmp) \ + $(use_enable gnome keyring) \ + $(use_enable gsl) \ + $(use_enable gstreamer media) \ + $(use_enable gtk2) \ + $(use_enable gtk3) \ + $(use_enable httpd) \ + $(use_enable image-imlib imageimlib) \ + $(use_enable image-io imageio) \ + $(use_enable jit) \ + $(use_enable libxml) \ + $(use_enable mime) \ + $(use_enable mysql) \ + $(use_enable ncurses) \ + $(use_enable net) \ + $(use_enable odbc) \ + $(use_enable openal) \ + $(use_enable opengl) \ + $(use_enable openssl) \ + $(use_enable pcre) \ + $(use_enable pdf) \ + $(use_enable postgres postgresql) \ + $(use_enable qt5) \ + $(use_enable sdl) \ + $(use_enable sdl-sound sdlsound) \ + $(use_enable sqlite sqlite3) \ + $(use_enable v4l) \ + $(use_enable x11) \ + $(use_enable xml) \ + $(use_enable zlib) \ + --disable-qt4 +} + +src_install() { + emake DESTDIR="${D}" install -j1 + + einstalldocs + + if use net ; then + newdoc gb.net/src/doc/README gb.net-README + newdoc gb.net/src/doc/changes.txt gb.net-ChangeLog + fi + + if use pcre ; then + newdoc gb.pcre/src/README gb.pcre-README + fi + + if use qt5 ; then + doicon "${S}/app/desktop/${MY_PN}.svg" + domenu "${S}/app/desktop/${MY_PN}.desktop" + + doicon -s 64 -c mimetypes \ + "${S}/app/mime/application-x-gambasscript.png" \ + "${S}/app/mime/application-x-gambasserverpage.png" \ + "${S}/main/mime/application-x-gambas3.png" + + insinto /usr/share/mime/application + doins "${S}/app/mime/application-x-gambasscript.xml" \ + "${S}/app/mime/application-x-gambasserverpage.xml" \ + "${S}/main/mime/application-x-gambas3.xml" + fi +} + +pkg_preinst() { + if use qt5 ; then + gnome2_icon_savelist + fi +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mime_database_update + + if use qt5 ; then + gnome2_icon_cache_update + fi +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mime_database_update + + if use qt5 ; then + gnome2_icon_cache_update + fi +} diff --git a/dev-util/gambas/metadata.xml b/dev-util/gambas/metadata.xml new file mode 100644 index 0000000..72f2c57 --- /dev/null +++ b/dev-util/gambas/metadata.xml @@ -0,0 +1,9 @@ + + + + + jpizarrocallejas@gmail.com + Jorge Pizarro Callejas + Jorgicio Gentoo Overlay + +