Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, app-text/chm2pdf/files/, app-text/chm2pdf/
Date: Tue, 11 Dec 2018 13:34:39
Message-Id: 1544534765.26b81ceb1e90dc36fd6c85c1617b22c70f7a029d.mgorny@gentoo
1 commit: 26b81ceb1e90dc36fd6c85c1617b22c70f7a029d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 11 13:26:05 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 11 13:26:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26b81ceb
7
8 app-text/chm2pdf: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/662180
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 app-text/chm2pdf/Manifest | 1 -
14 app-text/chm2pdf/chm2pdf-0.9.1-r2.ebuild | 39 ------------------
15 app-text/chm2pdf/files/tempdir.patch | 71 --------------------------------
16 app-text/chm2pdf/metadata.xml | 8 ----
17 profiles/package.mask | 4 --
18 5 files changed, 123 deletions(-)
19
20 diff --git a/app-text/chm2pdf/Manifest b/app-text/chm2pdf/Manifest
21 deleted file mode 100644
22 index bfb78778741..00000000000
23 --- a/app-text/chm2pdf/Manifest
24 +++ /dev/null
25 @@ -1 +0,0 @@
26 -DIST chm2pdf-0.9.1.tar.gz 19955 BLAKE2B 6f16f35d25904cf1b42e91c46f58b279fceb11a328a88e14f20a9749148a4a5932af4884a19f57dc89b0135b3b8acd2dc880265aa46dfb9887ab6212a59172bd SHA512 1d1997b17750f371e60cc6bf9693a8e4316deadd63247700f6ebd1bf02340f2e0524766a6be846d0f6349416b8551609da63fbf60ecd62766cf0d9b4f0c886d3
27
28 diff --git a/app-text/chm2pdf/chm2pdf-0.9.1-r2.ebuild b/app-text/chm2pdf/chm2pdf-0.9.1-r2.ebuild
29 deleted file mode 100644
30 index d4ace08fe54..00000000000
31 --- a/app-text/chm2pdf/chm2pdf-0.9.1-r2.ebuild
32 +++ /dev/null
33 @@ -1,39 +0,0 @@
34 -# Copyright 1999-2016 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=5
38 -
39 -PYTHON_COMPAT=( python2_7 )
40 -
41 -inherit python-single-r1
42 -
43 -DESCRIPTION="A script that converts a CHM file into a single PDF file"
44 -HOMEPAGE="https://code.google.com/p/chm2pdf/"
45 -SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
46 -
47 -LICENSE="GPL-2"
48 -KEYWORDS="amd64 x86"
49 -SLOT="0"
50 -IUSE=""
51 -
52 -RDEPEND="dev-python/pychm[${PYTHON_USEDEP}]
53 - app-text/htmldoc
54 - >=dev-libs/chmlib-0.40-r1[examples]
55 - ${PYTHON_DEPS}"
56 -
57 -REQUIRED_USE=${PYTHON_REQUIRED_USE}
58 -
59 -PATCHES=( "${FILESDIR}/tempdir.patch" )
60 -
61 -pkg_setup() {
62 - python-single-r1_pkg_setup
63 -}
64 -
65 -src_prepare(){
66 - python_fix_shebang .
67 -}
68 -
69 -src_install() {
70 - default
71 - python_doscript ${PN} || die "failed to create executable"
72 -}
73
74 diff --git a/app-text/chm2pdf/files/tempdir.patch b/app-text/chm2pdf/files/tempdir.patch
75 deleted file mode 100644
76 index 6bb5fe55d00..00000000000
77 --- a/app-text/chm2pdf/files/tempdir.patch
78 +++ /dev/null
79 @@ -1,71 +0,0 @@
80 ---- chm2pdf-0.9.1.orig/chm2pdf 2008-07-09 12:42:26.000000000 +0200
81 -+++ chm2pdf-0.9.1/chm2pdf 2009-02-25 20:58:53.000000000 +0100
82 -@@ -27,6 +27,8 @@
83 - import os, os.path
84 - import re, glob
85 - import getopt
86 -+import tempfile
87 -+import shutil
88 - # from BeautifulSoup import BeautifulSoup
89 -
90 - global version
91 -@@ -39,8 +41,8 @@
92 - global filename #the input filename
93 -
94 - version = '0.9.1'
95 --CHM2PDF_TEMP_WORK_DIR='/tmp/chm2pdf/work'
96 --CHM2PDF_TEMP_ORIG_DIR='/tmp/chm2pdf/orig'
97 -+CHM2PDF_TEMP_WORK_DIR=tempfile.mkdtemp()
98 -+CHM2PDF_TEMP_ORIG_DIR=tempfile.mkdtemp()
99 -
100 -
101 -
102 -@@ -299,16 +301,6 @@
103 - # ########################### File extraction and correction: START ############################
104 - #
105 - if options['dontextract'] == '':
106 --
107 -- try:
108 -- os.mkdir(CHM2PDF_TEMP_WORK_DIR)
109 -- except OSError: # The directory already exists.
110 -- pass
111 --
112 -- try:
113 -- os.mkdir(CHM2PDF_TEMP_ORIG_DIR)
114 -- except OSError: # The directory already exists.
115 -- pass
116 -
117 - try:
118 - os.mkdir(CHM2PDF_ORIG_DIR)
119 -@@ -620,7 +612,7 @@
120 - print '\t--continuous\n\t\tSpecifies that the HTML sources are unstructured (plain web pages).\n\t\tNo page breaks are inserted between each file or URL in the output.'
121 - print '\t--cookies \'name="value with space"; name=value\'\n\t\t'
122 - print '\t--datadir directory\n\t\tSpecifies the location of the HTMLDOC data files, usually /usr/share/htmldoc or C:\Program Files\HTMLDOC '
123 -- print "\t--dontextract \n\t\tIf given, %s will not extract the HTML files from the given CHM file, but will use previously extracted copies from the temporary directory " %name + '(i.e. ' + CHM2PDF_TEMP_ORIG_DIR + ' and ' + CHM2PDF_TEMP_WORK_DIR + '). Usually you will use this option after you have used the \'--extract-only\' option to extract the files in order to correct them manually (in ' + CHM2PDF_TEMP_WORK_DIR + '). After the correction, a call with \'--dontextract\' will not overwrite your changes, but will use the corrected files instead.'
124 -+# print "\t--dontextract \n\t\tIf given, %s will not extract the HTML files from the given CHM file, but will use previously extracted copies from the temporary directory " %name + '(i.e. ' + CHM2PDF_TEMP_ORIG_DIR + ' and ' + CHM2PDF_TEMP_WORK_DIR + '). Usually you will use this option after you have used the \'--extract-only\' option to extract the files in order to correct them manually (in ' + CHM2PDF_TEMP_WORK_DIR + '). After the correction, a call with \'--dontextract\' will not overwrite your changes, but will use the corrected files instead.'
125 - print '\t--duplex\n\t\tSpecifies that the output should be formatted for double-sided printing.'
126 - print '\t--effectduration {0.1..10.0}\n\t\tSpecifies the duration in seconds of PDF page transition effects.'
127 - print '\t--embedfonts\n\t\tSpecifies that fonts should be embedded in PDF output.'
128 -@@ -1084,13 +1076,6 @@
129 - print 'CHM file "' + filename + '" not found!'
130 - return
131 -
132 -- #remove temporary files
133 -- if options['dontextract'] == '':
134 -- if options['verbose']=='--verbose' and options['verbositylevel']=='high':
135 -- print 'Removing any previous temporary files...'
136 -- os.system('rm -r '+CHM2PDF_ORIG_DIR+'/*')
137 -- os.system('rm -r '+CHM2PDF_WORK_DIR+'/*')
138 --
139 - cfile = chm.CHMFile()
140 - cfile.LoadCHM(filename)
141 -
142 -@@ -1105,6 +1090,8 @@
143 - os.system('extract_chmLib ' + filename + ' ' + CHM2PDF_ORIG_DIR + '&> /dev/null')
144 -
145 - convert_to_pdf(cfile, filename, outputfilename, options)
146 -+ shutil.rmtree(CHM2PDF_TEMP_WORK_DIR)
147 -+ shutil.rmtree(CHM2PDF_TEMP_ORIG_DIR)
148 -
149 -
150 - if __name__ == '__main__':
151
152 diff --git a/app-text/chm2pdf/metadata.xml b/app-text/chm2pdf/metadata.xml
153 deleted file mode 100644
154 index 98820e79c35..00000000000
155 --- a/app-text/chm2pdf/metadata.xml
156 +++ /dev/null
157 @@ -1,8 +0,0 @@
158 -<?xml version="1.0" encoding="UTF-8"?>
159 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
160 -<pkgmetadata>
161 - <!-- maintainer-needed -->
162 - <upstream>
163 - <remote-id type="google-code">chm2pdf</remote-id>
164 - </upstream>
165 -</pkgmetadata>
166
167 diff --git a/profiles/package.mask b/profiles/package.mask
168 index 31d1b31cbed..f5e0ef34bd6 100644
169 --- a/profiles/package.mask
170 +++ b/profiles/package.mask
171 @@ -251,10 +251,6 @@ net-dialup/ueagle4-atm
172 # instead. Removal in a month.
173 sys-block/rts_pstor
174
175 -# Pacho Ramos <pacho@g.o> (11 Nov 2018)
176 -# Fails to run (#662180). Removal in a month.
177 -app-text/chm2pdf
178 -
179 # Mike Gilbert <floppym@g.o> (10 Nov 2018)
180 # Open bugs and no Gentoo maintainer.
181 # Removal in 30 days.