From 1eafaaf67b26a1f555f43f77ab36ccfc4aa458f5 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 26 Feb 2017 20:03:55 +0100 Subject: [PATCH] app-editors/notepadqq: initial import of version 1.0.1 --- .../notepadqq/notepadqq-1.0.1.exheres-0 | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 packages/app-editors/notepadqq/notepadqq-1.0.1.exheres-0 diff --git a/packages/app-editors/notepadqq/notepadqq-1.0.1.exheres-0 b/packages/app-editors/notepadqq/notepadqq-1.0.1.exheres-0 new file mode 100644 index 00000000..91c786fa --- /dev/null +++ b/packages/app-editors/notepadqq/notepadqq-1.0.1.exheres-0 @@ -0,0 +1,67 @@ +# Copyright 2017 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ tag="v${PV}" ] +require qmake [ slot=5 ] +require gtk-icon-cache freedesktop-desktop + +SUMMARY="Notepad++-like editor for Linux" +HOMEPAGE="http://notepadqq.altervista.org/ ${HOMEPAGE}" +# submodule, no proper source archive +# https://github.com/notepadqq/notepadqq/issues/369 +DOWNLOADS+=" https://github.com/notepadqq/CodeMirror/archive/d790fc39c1a5f06aa66415110b8ebe3026df665a.tar.gz -> CodeMirror-d790.tar.gz" + +LICENCES="GPL-3" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +# qtwebkit deprecation: +# https://github.com/notepadqq/notepadqq/issues/359 +DEPENDENCIES=" + build: + x11-libs/qttools:5 + build+run: + x11-libs/qtbase:5 + x11-libs/qtsvg:5 + x11-libs/qtwebkit:5 +" + +BUGS_TO="hasufell@posteo.de" + +EQMAKE_PARAMS=( + PREFIX=/usr + LRELEASE="/usr/$(exhost --target)/bin/lrelease-qt5" +) + +src_unpack() { + unpack CodeMirror-d790.tar.gz + default + edo rmdir "${WORK}"/src/editor/libs/codemirror + edo mv "${WORKBASE}"/CodeMirror-* "${WORK}"/src/editor/libs/codemirror +} + +src_install() { + emake INSTALL_ROOT="${IMAGE}" install + edo find "${IMAGE}" -type d -empty -delete + + # relocate some misplaced files + # this might improve with the new cmake build system anyway, + # so don't care to patch + # https://github.com/notepadqq/notepadqq/pull/357 + edo dodir /usr/$(exhost --target)/bin + edo mv "${IMAGE}"/usr/lib/notepadqq/notepadqq-bin \ + "${IMAGE}"/usr/$(exhost --target)/bin/notepadqq + edo rm -r "${IMAGE}"/usr/{lib,bin} +} + +pkg_postinst() { + gtk-icon-cache_pkg_postinst + freedesktop-desktop_pkg_postinst +} + +pkg_postrm() { + gtk-icon-cache_pkg_postrm + freedesktop-desktop_pkg_postrm +} +