summaryrefslogtreecommitdiff
path: root/app-text/xchm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/xchm
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/xchm')
-rw-r--r--app-text/xchm/Manifest9
-rw-r--r--app-text/xchm/files/xchm-1.23-wx3.0-compat.patch32
-rw-r--r--app-text/xchm/files/xchm.desktop11
-rw-r--r--app-text/xchm/files/xchm.xml7
-rw-r--r--app-text/xchm/metadata.xml15
-rw-r--r--app-text/xchm/xchm-1.23-r1.ebuild50
-rw-r--r--app-text/xchm/xchm-1.23-r2.ebuild51
7 files changed, 175 insertions, 0 deletions
diff --git a/app-text/xchm/Manifest b/app-text/xchm/Manifest
new file mode 100644
index 000000000000..014ad841df7e
--- /dev/null
+++ b/app-text/xchm/Manifest
@@ -0,0 +1,9 @@
+AUX xchm-1.23-wx3.0-compat.patch 929 SHA256 f98c3fa2a82f66ae627015388a9f0e671e280c2b9a1b6007f78a7b3ce013138f SHA512 7813bb885d9a62dd9da8484875cac5436b68cf1fbcc0212089c9cc10b104ffb05ea7af768a3a182c72f660c1be49a1f990700532416a7b7c028b282ecd83fca4 WHIRLPOOL bde7b22ffce65692a44f648dd5e7da4de5e0437407e9a63f4b06a7886cb79984f70ea8dc824e757ce63854577fde2e78febfabf5b5b8947d0d51c8e3f1768424
+AUX xchm.desktop 251 SHA256 37af6953e0682eaac8da79e52d08ae3627f1f731d8f841093de5bd40ac3da606 SHA512 c17e6e3957d4c0720e43dd64b169daf221e26652fd6487d2838a4c4aa86cd9640e651d55e6bc28dd4c4cc7b37624baf83df55061583f65eeecc592bd2c9a5e54 WHIRLPOOL 3bbd2d9c4814992b4ab808d9e8060d9272d9b5ffd707f8b4bc21969af256e2e9c5f2a881a804e023c61db648d885473ef657c9684aecf7cfca48391fb5313513
+AUX xchm.xml 257 SHA256 e599df84873a55522b9dba4db06393d76084dd7657690d4d7bf5b0aa76803955 SHA512 c2dc02da01dce9be31c92d95c28d8ada8c9532499d4f5d8875b41a42bd1f070f6f938e7f4cafdb8d42b13298d81eb03c3347e19c70b395f872888fac5a658533 WHIRLPOOL c1cdcdf77c1a411efd01bfe57d2abd2532389ab28397948a83b424d2daa6e410d952ae40f88cad2aa72eb0b8628df904becb00e3a0701309e755290c24aa2ad5
+DIST xchm-1.23.tar.gz 474274 SHA256 8f8f5c60954f340e50f1613913eaca6ff489c10ca36b2570b360d8ccba77c062 SHA512 c0df4362ff6db8136b20f62a76e7e93185375f6ef9eeeb1001e27ead9806d486332573ba8c3ca1863a70ce6b1d3bcc6d3af48d42add719312774dccfd7d18c90 WHIRLPOOL e5d7528032ac36713455df3f166dac31b6e55e868dd2360950006cff68168d944d8637dd480d0891696a9fb27139b05b91e80dc028c08f30c8cadf79ba34283a
+EBUILD xchm-1.23-r1.ebuild 1100 SHA256 a77bd47166ffd5b3c521d6893fdc461340c925682dfe50eade180e5b8a28463c SHA512 c42a291f0c2b77d657785626fb3ebbb629d7fdd1da7465ecf49555a6a4714179d90686452b37035e768440d0a2268d591e773efcaad03c9847fd8b3c2ea2421d WHIRLPOOL 07d66ed4ebd93008de8263bc47e0c5bc8cc31c408ecf6b8e2c8542424246b4cd2d997c063c6ab39572f97c9ef787aa50306df013ef1da6e1acfc04213d2b6bae
+EBUILD xchm-1.23-r2.ebuild 1077 SHA256 18773b089ec3275bb4e076b1a14ec0d6c337bf9da89dcf7eca2af1cc65ec5d2b SHA512 995da006863302d7a404e9d46058252c5038dde2bf54704160812e20050c8d6c8538a68952436b78dc893a1f9c154b54d3c4672ec97102c9a222de176cb7990a WHIRLPOOL 4878c2703ee7cfd8fce8e4ba6b6e7562b7d307a6896ab0605828aab403f60b1769c2ff4c64ecffab632e8dc6a3aa2839691214932866400709ad2f36eeb3a9ed
+MISC ChangeLog 3681 SHA256 6aa02634ded1f0fca45e91887ecb4456af6592944100bfc95bf80631f6a0fac1 SHA512 b3f984c458dc4842de962374e776ea08cb71bfdd8d2457220437a5bdd928690678a750c3805989f949c5ad060a922c5ea74a4db33afcdc2134695c2fef63f945 WHIRLPOOL ef2814c6f7872d0d716ae0781df5df4cd66ac00fd7be6275f599b0900217c6b63ede62958478e64aaea10142bf988626e03b533a7f10a19d68a9591e75ccccf6
+MISC ChangeLog-2015 13982 SHA256 ac7ed38feb8ecea0660f9f303cf3e09dc087455a715d7d5ead8fa3e1609cc436 SHA512 bd5a780c365e5d71955ef6f59c6be89e586fdb0429bc8979e06cf5f309220cd6d50d3028f8dcad099b41e9ff66ce226fc9d00a3815427cd1c6f96d377ce22a16 WHIRLPOOL 7fa88196f8d403f335734a8b64b0bbb98ad2a33c1f54930169b2789a667d1b0b0302553572d9a6ba30788deefbe5fbf80ff017cc994bb924a664c0636bb12470
+MISC metadata.xml 452 SHA256 c87b541c8047df2093e46df508f0176a1d3fd5988b85dd9123ab13d5433f7a80 SHA512 a9a20c765b0092d830f9d10fd549a20456bec845dba0e0849e84e7cc80172d7b4d2fd846c1f27afbc600cbce241f765ae22f61230b57eb04169a3c525c630552 WHIRLPOOL 76fbe7f9a921306ee11e306778c4d0f15770153f37097ca95049d4a276867463a86b00a77488b86bef032c71366f06448c1c10639ae6aa6ecceb369facfe380b
diff --git a/app-text/xchm/files/xchm-1.23-wx3.0-compat.patch b/app-text/xchm/files/xchm-1.23-wx3.0-compat.patch
new file mode 100644
index 000000000000..a9545cf5b568
--- /dev/null
+++ b/app-text/xchm/files/xchm-1.23-wx3.0-compat.patch
@@ -0,0 +1,32 @@
+Description: Fix code to compile with wxwidgets 3.0
+ Drops support for wx < 2.7, which is just not relevant now. And in fact
+ configure.ac checks for at least 2.8.0.
+Author: Olly Betts <olly@survex.com>
+Last-Update: 2014-03-07
+
+--- xchm-1.23.orig/src/chmframe.cpp
++++ xchm-1.23/src/chmframe.cpp
+@@ -265,11 +265,7 @@ void CHMFrame::OnChangeFonts(wxCommandEv
+ enu.EnumerateFacenames();
+ _normalFonts = new wxArrayString;
+
+-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
+ *_normalFonts = enu.GetFacenames();
+-#else
+- *_normalFonts = *enu.GetFacenames();
+-#endif
+ _normalFonts->Sort();
+ }
+
+@@ -278,11 +274,7 @@ void CHMFrame::OnChangeFonts(wxCommandEv
+ enu.EnumerateFacenames(wxFONTENCODING_SYSTEM, TRUE);
+ _fixedFonts = new wxArrayString;
+
+-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
+ *_fixedFonts = enu.GetFacenames();
+-#else
+- *_fixedFonts = *enu.GetFacenames();
+-#endif
+ _fixedFonts->Sort();
+ }
+
diff --git a/app-text/xchm/files/xchm.desktop b/app-text/xchm/files/xchm.desktop
new file mode 100644
index 000000000000..a8842132a170
--- /dev/null
+++ b/app-text/xchm/files/xchm.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=xCHM
+Comment=Compiled HTML Help (CHM) file viewer
+Comment[fr]=Visionneuse de fichiers Compiled HTML Help (CHM)
+Icon=xchm
+TryExec=xchm
+Exec=xchm %f
+MimeType=application/x-chm;
+Categories=Office;Viewer;
diff --git a/app-text/xchm/files/xchm.xml b/app-text/xchm/files/xchm.xml
new file mode 100644
index 000000000000..08cb9ca3f4b8
--- /dev/null
+++ b/app-text/xchm/files/xchm.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-chm">
+ <comment>Compiled HTML Help Format</comment>
+ <glob pattern="*.chm"/>
+ </mime-type>
+</mime-info>
diff --git a/app-text/xchm/metadata.xml b/app-text/xchm/metadata.xml
new file mode 100644
index 000000000000..50796a19435c
--- /dev/null
+++ b/app-text/xchm/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>rhill@gentoo.org</email>
+ <name>Ryan Hill</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xchm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/xchm/xchm-1.23-r1.ebuild b/app-text/xchm/xchm-1.23-r1.ebuild
new file mode 100644
index 000000000000..e5813683f6fe
--- /dev/null
+++ b/app-text/xchm/xchm-1.23-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+WX_GTK_VER="3.0"
+
+inherit eutils fdo-mime flag-o-matic wxwidgets
+
+DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
+HOMEPAGE="http://xchm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xchm/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+IUSE=""
+DEPEND=">=dev-libs/chmlib-0.36
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-wx3.0-compat.patch
+
+ append-flags -Wno-unused-local-typedefs
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS README ChangeLog
+
+ cp "${D}"/usr/share/pixmaps/xchm-32.xpm "${D}"/usr/share/pixmaps/xchm.xpm
+ rm -f "${D}"/usr/share/pixmaps/xchm-*.xpm
+ rm -f "${D}"/usr/share/pixmaps/xchmdoc*.xpm
+
+ domenu "${FILESDIR}"/xchm.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/xchm.xml
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
diff --git a/app-text/xchm/xchm-1.23-r2.ebuild b/app-text/xchm/xchm-1.23-r2.ebuild
new file mode 100644
index 000000000000..b9eaf64c963e
--- /dev/null
+++ b/app-text/xchm/xchm-1.23-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+WX_GTK_VER="3.0-gtk3"
+
+inherit fdo-mime wxwidgets
+
+DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
+HOMEPAGE="http://xchm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xchm/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE=""
+DEPEND=">=dev-libs/chmlib-0.36
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND=${DEPEND}
+
+PATCHES=( "${FILESDIR}"/${P}-wx3.0-compat.patch )
+
+src_prepare() {
+ setup-wxwidgets
+ default
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS README ChangeLog
+
+ cp "${D}"/usr/share/pixmaps/xchm-32.xpm "${D}"/usr/share/pixmaps/xchm.xpm
+ rm -f "${D}"/usr/share/pixmaps/xchm-*.xpm
+ rm -f "${D}"/usr/share/pixmaps/xchmdoc*.xpm
+
+ domenu "${FILESDIR}"/xchm.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/xchm.xml
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}