[arch-commits] Commit in retext/repos/community-any (9 files)
Jiachen Yang
farseerfc at archlinux.org
Tue Feb 23 15:20:15 UTC 2016
Date: Tuesday, February 23, 2016 @ 16:20:15
Author: farseerfc
Revision: 163220
archrelease: copy trunk to community-any
Added:
retext/repos/community-any/PKGBUILD
(from rev 163219, retext/trunk/PKGBUILD)
retext/repos/community-any/enchant.patch
(from rev 163219, retext/trunk/enchant.patch)
retext/repos/community-any/retext.install
(from rev 163219, retext/trunk/retext.install)
retext/repos/community-any/x-retext-markdown.xml
(from rev 163219, retext/trunk/x-retext-markdown.xml)
retext/repos/community-any/x-retext-rst.xml
(from rev 163219, retext/trunk/x-retext-rst.xml)
Deleted:
retext/repos/community-any/PKGBUILD
retext/repos/community-any/retext.install
retext/repos/community-any/x-retext-markdown.xml
retext/repos/community-any/x-retext-rst.xml
----------------+
PKGBUILD | 125 +++++++++++++++++++++++++++++--------------------------
enchant.patch | 13 +++++
retext.install | 30 ++++++-------
3 files changed, 96 insertions(+), 72 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-23 15:16:10 UTC (rev 163219)
+++ PKGBUILD 2016-02-23 15:20:15 UTC (rev 163220)
@@ -1,57 +0,0 @@
-# Maintainer: Jiachen Yang <farseerfc at gmail.com>
-# AUR Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
-# Contributor: Bartosz Chmura <chmurli at gmail.com>
-# Contributor: Alessio Sergi <asergi at archlinux dot us>
-# Contributor: alfplayer
-# Contributor: menta
-
-pkgname=retext
-pkgver=5.3.0
-pkgrel=3
-pkgdesc="A simple editor for Markdown and ReStructuredText markup languages"
-arch=('any')
-url="https://github.com/retext-project/retext"
-license=('GPL3')
-# for desktop integration: 'shared-mime-info' 'xdg-utils' 'desktop-file-utils'
-# for toolbar icons (see http://sourceforge.net/p/retext/tickets/44/): 'gconf'
-depends=('python-pyqt5' 'qt5-webkit' 'python-markups' 'shared-mime-info' 'xdg-utils' 'desktop-file-utils' 'gconf')
-makedepends=('imagemagick' 'qt5-tools' 'qtchooser')
-optdepends=('python-markdown: for Markdown language support'
- 'python-docutils: for reStructuredText language support'
- 'python-pyenchant: for spell checking support')
-source=("https://github.com/retext-project/${pkgname}/archive/${pkgver}.tar.gz"
- "x-retext-markdown.xml"
- "x-retext-rst.xml")
-install="${pkgname}".install
-sha256sums=('dcb39f0e53b02f8ad599b3091c1af096ca474a2ccaeb1321da38deeb982187c1'
- 'b51611479d3224eec2b58264ed91ace3eccb502b7b806dae3e7a3ab4aab8c4b8'
- '6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a')
-
-build () {
- cd "$srcdir/retext-${pkgver}"
- sed -i "s/, env={'QT_SELECT': 'qt5'}//g" setup.py
- python3 setup.py build
-}
-
-package () {
- cd "$srcdir/retext-${pkgver}"
- python3 setup.py install --root="$pkgdir" -O1
-
- # create /usr/share/* dirs
- _SHAREDIR="$pkgdir/usr/share"
- install -d -m 755 $_SHAREDIR/{applications,mime/packages}
-
- # install icons
- _ICONSDIR="$_SHAREDIR/icons/hicolor"
- for size in 16 22 24 32 48 128; do
- install -d -m 755 $_ICONSDIR/${size}x${size}/apps
- convert -resize $size icons/$pkgname.png $_ICONSDIR/${size}x${size}/apps/$pkgname.png
- done
- install -d -m 755 $_ICONSDIR/scalable/apps
- install -m 644 icons/$pkgname.svg $_ICONSDIR/scalable/apps/$pkgname.svg
-
- # install mime files
- install -m 644 $srcdir/x-retext-{markdown,rst}.xml $_SHAREDIR/mime/packages/
-}
-
-# vim:set ts=2 sw=2 et:
Copied: retext/repos/community-any/PKGBUILD (from rev 163219, retext/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-02-23 15:20:15 UTC (rev 163220)
@@ -0,0 +1,68 @@
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# AUR Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux at free.fr>
+# Contributor: Bartosz Chmura <chmurli at gmail.com>
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+# Contributor: alfplayer
+# Contributor: menta
+
+pkgname=retext
+pkgver=5.3.0
+pkgrel=4
+pkgdesc="A simple editor for Markdown and ReStructuredText markup languages"
+arch=('any')
+url="https://github.com/retext-project/retext"
+license=('GPL3')
+# for desktop integration: 'shared-mime-info' 'xdg-utils' 'desktop-file-utils'
+# for toolbar icons (see http://sourceforge.net/p/retext/tickets/44/): 'gconf'
+depends=('python-pyqt5' 'qt5-webkit' 'python-markups' 'shared-mime-info' 'xdg-utils' 'desktop-file-utils' 'gconf')
+makedepends=('imagemagick' 'qt5-tools' 'qtchooser')
+optdepends=('python-markdown: for Markdown language support'
+ 'python-docutils: for reStructuredText language support'
+ 'python-pyenchant: for spell checking support')
+source=("https://github.com/retext-project/${pkgname}/archive/${pkgver}.tar.gz"
+ "enchant.patch"
+ "x-retext-markdown.xml"
+ "x-retext-rst.xml")
+install="${pkgname}".install
+sha256sums=('dcb39f0e53b02f8ad599b3091c1af096ca474a2ccaeb1321da38deeb982187c1'
+ '4c324cd3afa0dadb150d2722704e91342c0684d42223f2a07de260bee22436c0'
+ 'b51611479d3224eec2b58264ed91ace3eccb502b7b806dae3e7a3ab4aab8c4b8'
+ '6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a')
+
+prepare () {
+ cd "$srcdir/retext-${pkgver}"
+ sed -i "s/, env={'QT_SELECT': 'qt5'}//g" setup.py
+
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812149
+ # https://github.com/retext-project/retext/issues/193
+ # https://github.com/retext-project/retext/commit/39603255072313423a17d9207c6b1ec613d9825b
+ patch -p1 --verbose <"${srcdir}/enchant.patch"
+}
+
+build () {
+ cd "$srcdir/retext-${pkgver}"
+ python3 setup.py build
+}
+
+package () {
+ cd "$srcdir/retext-${pkgver}"
+ python3 setup.py install --root="$pkgdir" -O1
+
+ # create /usr/share/* dirs
+ _SHAREDIR="$pkgdir/usr/share"
+ install -d -m 755 $_SHAREDIR/{applications,mime/packages}
+
+ # install icons
+ _ICONSDIR="$_SHAREDIR/icons/hicolor"
+ for size in 16 22 24 32 48 128; do
+ install -d -m 755 $_ICONSDIR/${size}x${size}/apps
+ convert -resize $size icons/$pkgname.png $_ICONSDIR/${size}x${size}/apps/$pkgname.png
+ done
+ install -d -m 755 $_ICONSDIR/scalable/apps
+ install -m 644 icons/$pkgname.svg $_ICONSDIR/scalable/apps/$pkgname.svg
+
+ # install mime files
+ install -m 644 $srcdir/x-retext-{markdown,rst}.xml $_SHAREDIR/mime/packages/
+}
+
+# vim:set ts=2 sw=2 et:
Copied: retext/repos/community-any/enchant.patch (from rev 163219, retext/trunk/enchant.patch)
===================================================================
--- enchant.patch (rev 0)
+++ enchant.patch 2016-02-23 15:20:15 UTC (rev 163220)
@@ -0,0 +1,13 @@
+diff --git a/ReText/tab.py b/ReText/tab.py
+index 42e080a..eb8aa11 100644
+--- a/ReText/tab.py
++++ b/ReText/tab.py
+@@ -48,7 +48,7 @@ class ReTextTab(QObject):
+ textDocument = self.editBox.document()
+ self.highlighter = ReTextHighlighter(textDocument)
+ if enchant_available and parent.actionEnableSC.isChecked():
+- self.highlighter.dictionary = enchant.Dict(parent.sl)
++ self.highlighter.dictionary = enchant.Dict(parent.sl or None)
+ self.highlighter.rehighlight()
+ self.highlighter.docType = self.markup.name
+
Deleted: retext.install
===================================================================
--- retext.install 2016-02-23 15:16:10 UTC (rev 163219)
+++ retext.install 2016-02-23 15:20:15 UTC (rev 163220)
@@ -1,15 +0,0 @@
-post_install() {
- xdg-icon-resource forceupdate --theme hicolor &>/dev/null
- update-desktop-database -q
- update-mime-database usr/share/mime &>/dev/null
-}
-
-post_upgrade() {
- post_install "$1"
-}
-
-post_remove() {
- post_install "$1"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: retext/repos/community-any/retext.install (from rev 163219, retext/trunk/retext.install)
===================================================================
--- retext.install (rev 0)
+++ retext.install 2016-02-23 15:20:15 UTC (rev 163220)
@@ -0,0 +1,15 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+ update-desktop-database -q
+ update-mime-database usr/share/mime &>/dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ post_install "$1"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: x-retext-markdown.xml
===================================================================
(Binary files differ)
Copied: retext/repos/community-any/x-retext-markdown.xml (from rev 163219, retext/trunk/x-retext-markdown.xml)
===================================================================
(Binary files differ)
Deleted: x-retext-rst.xml
===================================================================
(Binary files differ)
Copied: retext/repos/community-any/x-retext-rst.xml (from rev 163219, retext/trunk/x-retext-rst.xml)
===================================================================
(Binary files differ)
More information about the arch-commits
mailing list