diff options
Diffstat (limited to 'dev-db/pgmodeler/pgmodeler-0.9.1.ebuild')
-rw-r--r-- | dev-db/pgmodeler/pgmodeler-0.9.1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-db/pgmodeler/pgmodeler-0.9.1.ebuild b/dev-db/pgmodeler/pgmodeler-0.9.1.ebuild new file mode 100644 index 000000000000..9d9b077aa76c --- /dev/null +++ b/dev-db/pgmodeler/pgmodeler-0.9.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +POSTGRES_COMPAT=( 9.{3..6} 10 ) + +inherit desktop postgres qmake-utils + +MY_PV=${PV/_/-} + +DESCRIPTION="PostgreSQL Database Modeler" +HOMEPAGE="https://pgmodeler.io" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="${POSTGRES_DEP} + dev-libs/icu:= + dev-libs/libxml2:= + dev-qt/qtcore:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 +" +RDEPEND="${DEPEND}" + +DOCS=( CHANGELOG.md README.md RELEASENOTES.md ) + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_configure() { + eqmake5 \ + PREFIX="${EPREFIX%/}/usr" \ + PLUGINSDIR="${EPREFIX%/}/usr/$(get_libdir)/${PN}/plugins" \ + PRIVATEBINDIR="${EPREFIX%/}/usr/$(get_libdir)/${PN}/bin" \ + PRIVATELIBDIR="${EPREFIX%/}/usr/$(get_libdir)/${PN}" \ + NO_UPDATE_CHECK=1 \ + -r ${PN}.pro +} + +src_test() { + cd "${S}/tests" || die + eqmake5 tests.pro + emake + emake check +} + +src_install() { + emake INSTALL_ROOT="${D}" install + + rm "${D}"/usr/share/${PN}/{CHANGELOG.md,LICENSE,README.md,RELEASENOTES.md} + + einstalldocs + + doicon conf/${PN}_logo.png + make_desktop_entry ${PN} ${PN} ${PN}_logo Development +} |