summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2017-08-04 10:15:10 +0200
committerLars Wendler <polynomial-c@gentoo.org>2017-08-04 10:16:15 +0200
commit8f2ee05799a161b4d1ef933013ddbb792ece4e41 (patch)
treea433ec61f589f676f968419df6e868445db679e7 /app-editors/notepadqq
parentapp-misc/tmux: remove 2.5-r1 per shell-tools decision (diff)
downloadgentoo-8f2ee05799a161b4d1ef933013ddbb792ece4e41.tar.gz
gentoo-8f2ee05799a161b4d1ef933013ddbb792ece4e41.tar.bz2
gentoo-8f2ee05799a161b4d1ef933013ddbb792ece4e41.zip
app-editors/notepadqq: Initial commit.
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'app-editors/notepadqq')
-rw-r--r--app-editors/notepadqq/Manifest2
-rw-r--r--app-editors/notepadqq/metadata.xml11
-rw-r--r--app-editors/notepadqq/notepadqq-1.0.1.ebuild55
3 files changed, 68 insertions, 0 deletions
diff --git a/app-editors/notepadqq/Manifest b/app-editors/notepadqq/Manifest
new file mode 100644
index 000000000000..fa596d1beab1
--- /dev/null
+++ b/app-editors/notepadqq/Manifest
@@ -0,0 +1,2 @@
+DIST CodeMirror-5.18.2.tar.gz 923001 SHA256 edfccf28e609a08476e9da4f592d7aa23b7e73af3954d90605e0c650abd20a1a SHA512 c979c1ef02bb222b08e64847e5caab9c8a525c96d0eef656a00730d6710b0144144ac656eddef05d50c30c7d33da7dffe1a7580b9d47a5d958af9d6484ea705f WHIRLPOOL 9baaada10513eaad75bb6e8f2d73fd076b85f8a85adec1dc235857ae1f9160d6f463859356d5fce69c882ca4b3a2efc802a62453eb2435f868d9691cb435d73f
+DIST notepadqq-1.0.1.tar.gz 1056249 SHA256 552f274b9c9d3d48e2e55462f33aea8df8ebd0f421b0d7a23b78a46693fbed34 SHA512 781ddf9960227c4ad21fb7e763180cfed7f1c5c0237277335577932678a42a4c2f303f61922d93ec850dbc86df36c292ff10ae053a6e00d7127a48c7ac4e359c WHIRLPOOL 53f47ce9af83e57121e8ad261aece0eda53bbe42d02edebdfd8ffeb3874146c6ab7d63e2347755ac6a447413f46254c6db7ac7aed8809c4ad1baf5a7e0e586fb
diff --git a/app-editors/notepadqq/metadata.xml b/app-editors/notepadqq/metadata.xml
new file mode 100644
index 000000000000..778dcea02be0
--- /dev/null
+++ b/app-editors/notepadqq/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">notepadqq/notepadqq</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-editors/notepadqq/notepadqq-1.0.1.ebuild b/app-editors/notepadqq/notepadqq-1.0.1.ebuild
new file mode 100644
index 000000000000..9a6ce8d4b4ec
--- /dev/null
+++ b/app-editors/notepadqq/notepadqq-1.0.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+CM_PV="5.18.2"
+
+DESCRIPTION="Notepad++-like editor for Linux"
+HOMEPAGE="http://notepadqq.altervista.org"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/${PN}/CodeMirror/archive/${CM_PV}.tar.gz -> CodeMirror-${CM_PV}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ rmdir "${S}"/src/editor/libs/codemirror || die
+ mv "${WORKDIR}"/CodeMirror-${CM_PV} "${S}"/src/editor/libs/codemirror \
+ || die
+}
+
+src_prepare() {
+ default
+
+ # codemirror releases have no m4 directory
+ sed '/mode\/m4/d' -i src/editor/libs/Makefile-codemirror || die
+
+ # Silence a QA warning
+ sed '/^OnlyShowIn/d' \
+ -i support_files/shortcuts/notepadqq.desktop \
+ || die
+}
+
+src_configure() {
+ eqmake5 PREFIX="${EPREFIX}/usr" ${PN}.pro
+}
+
+src_install() {
+ emake -j1 INSTALL_ROOT="${D}" install
+}