--- anki-0.9.6.orig/debian/anki-launcher +++ anki-0.9.6/debian/anki-launcher @@ -0,0 +1,8 @@ +#!/usr/bin/python +# Simplified launcher for anki as installed in the Debian system + +import sys +sys.path[0:0] = ['/usr/share/anki'] + +import ankiqt +ankiqt.run() --- anki-0.9.6.orig/debian/anki.install +++ anki-0.9.6/debian/anki.install @@ -0,0 +1,13 @@ +ankiqt/*.py usr/share/anki/ankiqt +ankiqt/forms/*.py usr/share/anki/ankiqt/forms +ankiqt/ui/*.py usr/share/anki/ankiqt/ui +libanki/anki/*.py usr/share/anki/anki +libanki/anki/features/*.py usr/share/anki/anki/features +libanki/anki/features/chinese/__init__.py usr/share/anki/anki/features/chinese +unihan.db usr/share/anki/anki/features/chinese +libanki/anki/importing/*.py usr/share/anki/anki/importing + +ankiqt/locale/*/ usr/share/locale +libanki/anki/locale/*/ usr/share/locale +debian/anki.xpm usr/share/pixmaps +anki.desktop usr/share/applications --- anki-0.9.6.orig/debian/compat +++ anki-0.9.6/debian/compat @@ -1 +1 @@ -5 +6 --- anki-0.9.6.orig/debian/control +++ anki-0.9.6/debian/control @@ -1,38 +1,30 @@ Source: anki +Maintainer: Andreas Bombe Section: misc Priority: optional -Maintainer: Damien Elmes -Build-Depends: debhelper (>= 5), python-dev (>= 2.4-1), python-central, python-qt4 (>= 4.2), python-sip4 (>= 4.6), python-setuptools (>= 0.6c5) -Standards-Version: 3.7.2 -XS-Python-Version: >= 2.4 -XS-Vcs-hg: http://repose.ath.cx/hg/ -XS-Vcs-browser: http://repose.ath.cx/hg/ +Build-Depends: debhelper (>= 6) +Build-Depends-Indep: unicode-data, bzip2, python-support (>= 0.6), + python-sqlalchemy (>= 0.4.1), python-pysqlite2 +Standards-Version: 3.8.0 +Homepage: http://ichi2.net/anki Package: anki Architecture: all -Depends: ${python:Depends}, python-qt4 (>= 4.2), python-sip4 (>= 4.6), python-sqlalchemy (>= 0.4.1), python-pysqlite2 (>= 2.3.0), python-simplejson (>= 1.7.3) -Suggests: python-numpy, python-matplotlib, kakasi -XB-Python-Version: ${python:Versions} -Description: An intelligent flashcard program for language learning +Section: misc +Depends: ${python:Depends}, python-qt4 (>= 4.4), python-simplejson (>= 1.7.3), + python-sqlalchemy (>= 0.4.1), python-pysqlite2 (>= 2.3.0) +Recommends: python-matplotlib, kakasi +Suggests: dvipng +Description: flashcard learning program with special support for Japanese Anki is a program designed to help you remember facts (such as words and phrases in a foreign language) as easily, quickly and efficiently as possible. To do this, it tracks how well you remember each fact, and uses that - information to optimally schedule review times. With a minimal amount of - effort, you can greatly increase the amount of material you remember, making - study more productive, and more fun. - . - Anki is based on a theory called spaced repetition. In simple terms, it means - that each time you review some material, you should wait longer than last time - before reviewing it again. This maximizes the time spent studying difficult - material and minimizes the time spent reviewing things you already know. The - concept is simple, but the vast majority of memory trainers and flashcard - programs out there either avoid the concept all together, or implement - inflexible and suboptimal methods that were originally designed for pen and - paper. + information to optimally schedule review times. . - Anki's primary target is people studying Japanese, and Japanese native - speakers studying English. However, it can be used to remember anything at - all, and there are some users who are studying Chinese and possibly other - languages with it. + While Anki can be used for studying anything, it also ships with special + features designed to make studying Japanese and English easier: integrated + dictionary lookups, missing kanji reports, and more. . - Home page: + Besides text, it supports sounds, images and rendering TeX snippets in the + cards. Sample card decks are included for a subset of the Japanese Language + Proficiency Test vocabulary and for some Russian vocabulary. --- anki-0.9.6.orig/debian/copyright +++ anki-0.9.6/debian/copyright @@ -1,15 +1,75 @@ -This package was debianized by Nicholas Breen on -Sat, 11 Aug 2007 16:39:44 -0700. +Anki was debianised by Andreas Bombe . It was downloaded from +http://ichi2.net/anki/download/ -It was downloaded from - -Upstream Author: Damien Elmes - -Copyright (C) 2007 Damien Elmes. +Upstream author: Damien Elmes, with contributions by "Lac", "Iroiro" and +"Frostschutz". Translations provided by Laurent Steffan, Andreas Klauer and +"Pcsl". License: + # Copyright: Damien Elmes + # License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html - GPL, version 2 or later. See /usr/share/common-licenses/GPL. +On Debian systems, the complete text of the GNU General Public License version 3 +can be found in /usr/share/common-licenses/GPL-3. -The Debian packaging is (C) 2007, Nicholas Breen and -is licensed under the GPL, see `/usr/share/common-licenses/GPL'. +The .orig.tar.gz was repackaged from the original .tgz to remove the sample +deck 'RTK1+3.anki'. This deck has an unclear licensing status as it is a +compilation of kanji from the book series "Remembering the Kanji" by James +Heisig. All sample decks were created by Damien Elmes. + + +The package includes unihan.db, a database created from Unihan.txt by Unicode, +Inc. Its copyright is: + + EXHIBIT 1 UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE + + Unicode Data Files include all data files under the directories + http://www.unicode.org/Public/ and http://www.unicode.org/reports/. Unicode + Software includes any source code published in the Unicode Standard or + under the directories http://www.unicode.org/Public/ and + http://www.unicode.org/reports/. + + NOTICE TO USER: Carefully read the following legal agreement. BY + DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA + FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY + ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS + AGREEMENT. IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE + OR USE THE DATA FILES OR SOFTWARE. + + COPYRIGHT AND PERMISSION NOTICE + + Copyright © 1991-2005 Unicode, Inc. All rights reserved. Distributed under + the Terms of Use in http://www.unicode.org/copyright.html. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of the Unicode data files and any associated documentation (the "Data + Files") or Unicode software and any associated documentation (the + "Software") to deal in the Data Files or Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, and/or sell copies of the Data Files or Software, and + to permit persons to whom the Data Files or Software are furnished to do + so, provided that (a) the above copyright notice(s) and this permission + notice appear with all copies of the Data Files or Software, (b) both the + above copyright notice(s) and this permission notice appear in associated + documentation, and (c) there is clear notice in each modified Data File or + in the Software as well as in the documentation associated with the Data + File(s) or Software that the data or software has been modified. + + THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY + KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF + THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS + INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR + CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THE DATA FILES OR SOFTWARE. + + Except as contained in this notice, the name of a copyright holder shall + not be used in advertising or otherwise to promote the sale, use or other + dealings in these Data Files or Software without prior written + authorization of the copyright holder. + + Unicode and the Unicode logo are trademarks of Unicode, Inc., and may be + registered in some jurisdictions. All other trademarks and registered + trademarks mentioned herein are the property of their respective owners. --- anki-0.9.6.orig/debian/rules +++ anki-0.9.6/debian/rules @@ -1,51 +1,53 @@ #!/usr/bin/make -f -#export DH_VERBOSE=1 - build: build-stamp - build-stamp: dh_testdir - python setup.py build - ( cd libanki ;\ - python setup.py build ) - touch $@ + bunzip2 Unihan.txt + python libanki/anki/features/chinese/save_unihan.py + touch build-stamp -clean: +movedebfiles: dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - rm -rf build libanki/build - find $(CURDIR) -name '*\.py[co]' -exec rm {} \; - dh_clean + -tar -cf upstreamdebfiles.tar debian/dirs debian/docs debian/pycompat + rm -f debian/dirs debian/docs debian/pycompat -install: build +unmovedebfiles: dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - python setup.py install --root=$(CURDIR)/debian/anki --prefix=/usr - ( cd libanki ;\ - python setup.py install --root=$(CURDIR)/debian/anki --prefix=/usr ) - install -o root -g root -m 644 $(CURDIR)/debian/anki.xpm $(CURDIR)/debian/anki/usr/share/pixmaps/anki.xpm - install -o root -g root -m 644 $(CURDIR)/anki.desktop $(CURDIR)/debian/anki/usr/share/applications/anki.desktop + if [ -f upstreamdebfiles.tar ]; then tar -xf upstreamdebfiles.tar; fi + rm -f upstreamdebfiles.tar -binary-indep: build install +binary: binary-arch binary-indep +binary-arch: build + +binary-indep: build movedebfiles dh_testdir dh_testroot + dh_clean + dh_installdirs usr/bin + dh_install + cp debian/anki-launcher debian/anki/usr/bin/anki dh_installchangelogs - dh_installdocs -# dh_install + dh_installdocs README README.development README.translating CREDITS + dh_installexamples libanki/samples/*.anki dh_installmenu dh_desktop - dh_pycentral - dh_installman $(CURDIR)/debian/anki.1 - dh_compress + dh_pysupport + dh_installman debian/anki.1 + dh_compress -X.anki + chmod a-x debian/anki/usr/share/anki/ankiqt/__init__.py dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb -binary: binary-indep -.PHONY: build clean binary-indep binary-arch binary install +clean: unmovedebfiles + dh_testdir + dh_testroot + rm -f build-stamp + rm -f Unihan.txt unihan.db + find -name \*.py[co] -exec rm {} \; + dh_clean + +.PHONY: build clean binary binary-arch binary-indep movedebfiles unmovedebfiles --- anki-0.9.6.orig/debian/watch +++ anki-0.9.6/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://ichi2.net/anki/download/ anki-(.*)\.tgz --- anki-0.9.6.orig/debian/changelog +++ anki-0.9.6/debian/changelog @@ -1,157 +1,83 @@ anki (0.9.6-1) unstable; urgency=low - * New release + * New upstream release + * Event handler treatment of objects fixed in upstream release (closes: + #486295) + * Uncloseable dialogs fixed in upstream release (closes: #483315) + * debian/control: update python-qt4 dependency for anki from >= 4.2 to >= + 4.4 + * debian/control: Standards-Version bumped to 3.8.0, no changes necessary + * anki.desktop: Upstream removed obsolete encoding field, patching no longer + necessary + * Upstream removed shell bangs from all Python modules except + ankiqt/__init__.py so only that one still needs patching - -- Damien Elmes Tue, 08 Jul 2008 00:19:41 +0900 - -anki (0.9.6beta2-1) unstable; urgency=low - - * New release - - -- Damien Elmes Fri, 04 Jul 2008 00:59:09 +0900 - -anki (0.9.6-1) unstable; urgency=low - - * New release - - -- Damien Elmes Sat, 24 May 2008 17:08:20 +0900 + -- Andreas Bombe Fri, 18 Jul 2008 03:42:08 +0200 anki (0.9.5.7-1) unstable; urgency=low - * New release - - -- Damien Elmes Thu, 03 Apr 2008 13:26:00 +0900 + * New upstream release -anki (0.9.5.6-1) unstable; urgency=low - - * New release - - -- Damien Elmes Wed, 02 Apr 2008 23:14:18 +0900 + -- Andreas Bombe Sun, 06 Apr 2008 17:05:49 +0200 anki (0.9.5.5-1) unstable; urgency=low - * New release - - -- Damien Elmes Mon, 24 Mar 2008 04:33:27 +0900 - -anki (0.9.5.4-1) unstable; urgency=low - - * New release - - -- Damien Elmes Sun, 09 Mar 2008 03:32:04 +0900 - -anki (0.9.5.3-1) unstable; urgency=low - - * New release - - -- Damien Elmes Tue, 04 Mar 2008 00:21:43 +0900 - -anki (0.9.4-1) unstable; urgency=low - - * New release - - -- Damien Elmes Sat, 23 Feb 2008 16:11:34 +0900 - -anki (0.9.3-1) unstable; urgency=low - - * New release - - -- Damien Elmes Wed, 20 Feb 2008 22:03:03 +0900 - -anki (0.9.2-1) unstable; urgency=low - - * New release - - -- Damien Elmes Sun, 17 Feb 2008 03:58:04 +0900 - -anki (0.9.1-1) unstable; urgency=low + * New upstream release now licensed under GPL 3 or later + * debian/copyright: adapt to upstream relicense + * debian/rules: install CREDITS as documentation + * debian/rules: move upstream debian/ files out of the way on build and + restore in clean, file removals aren't recorded in Debian diffs - * New release + -- Andreas Bombe Mon, 31 Mar 2008 00:29:22 +0200 - -- Damien Elmes Sat, 16 Feb 2008 23:29:12 +0900 +anki (0.9.5.4-2) unstable; urgency=low -anki (0.9.0-1) unstable; urgency=low + * Add python-sqlite2 to Build-Depends-Indep, now it really builds in a clean + chroot and fixes the FTBFS - * New release + -- Andreas Bombe Tue, 11 Mar 2008 14:12:35 +0100 - -- Damien Elmes Sat, 16 Feb 2008 05:22:43 +0900 - -anki (0.9.0beta2-1) unstable; urgency=low - - * New release - - -- Damien Elmes Thu, 14 Feb 2008 04:20:24 +0900 - -anki (0.3.9-1) unstable; urgency=low - - * New release - - -- Damien Elmes Thu, 03 Jan 2008 03:16:34 +0900 - -anki (0.3.8-1) unstable; urgency=low - - * New release - - -- Damien Elmes Thu, 27 Dec 2007 20:11:23 +0900 - -anki (0.3.7-1) unstable; urgency=low - - * New release - - -- Damien Elmes Wed, 26 Dec 2007 05:49:50 +0900 - -anki (0.3.6-1) unstable; urgency=low - - * New upstream release. - - -- Damien Elmes Fri, 07 Sep 2007 23:50:46 +0900 - -anki (0.3.5-1) unstable; urgency=low - - * New upstream release. - - -- Nicholas Breen Sat, 25 Aug 2007 08:59:20 -0700 - -anki (0.3.4.1-2) UNRELEASED; urgency=low - - * NOT RELEASED YET - - -- Nicholas Breen Fri, 24 Aug 2007 11:30:45 -0700 - -anki (0.3.4.1-1) unstable; urgency=low - - * New upstream release. - - -- Nicholas Breen Fri, 24 Aug 2007 11:26:31 -0700 - -anki (0.3.4-2) UNRELEASED; urgency=low - - * NOT RELEASED YET +anki (0.9.5.4-1) unstable; urgency=low - -- Nicholas Breen Wed, 22 Aug 2007 15:37:34 -0700 + * New upstream release + * debian/control: add Suggests dvipng, it's used for rendering LaTeX + snippets + * debian/control: add python-sqlalchemy to Build-Depends-Indep, fixes FTBFS + (closes: #470334) -anki (0.3.4-1) unstable; urgency=low + -- Andreas Bombe Mon, 10 Mar 2008 22:52:15 +0100 - * New upstream release. +anki (0.9.5.2-1) unstable; urgency=low - -- Nicholas Breen Wed, 22 Aug 2007 15:30:03 -0700 + * New upstream release fixes some serious bugs with card intervals + * debian/rules: clean target now also removes all .pyc and .pyo files + generated during a possible execution of the uninstalled anki -anki (0.3.3-2) unstable; urgency=low + -- Andreas Bombe Fri, 29 Feb 2008 01:07:37 +0100 - * Tighten dependency on python-sip4 to >= 4.6. - * Improve categorization in desktop file. +anki (0.9.5-2) unstable; urgency=low - -- Nicholas Breen Fri, 17 Aug 2007 12:59:45 -0700 + * debian/control: Forgot to add python-pysqlite2 to Depends, required for + Python versions < 2.5 (closes: #468347) -anki (0.3.3-1) unstable; urgency=low + -- Andreas Bombe Thu, 28 Feb 2008 16:33:12 +0100 - * New upstream release. +anki (0.9.5-1) unstable; urgency=low - -- Nicholas Breen Tue, 14 Aug 2007 20:15:16 -0700 + * New upstream release + * Remove shell bangs from all Python modules that had them for aesthetic + reasons, no lintian warnings anymore + * debian/rules: remove execute permissions from ankiqt/__init__.py for the + same reason + * ankiqt/ui/main.py: make setupAutoUpdate() return without doing anything to + avoid bugging the user about new upstream versions on every start + * debian/control: move all build depends except debhelper to + Build-Depends-Indep -anki (0.3.2+hg20070812-1) unstable; urgency=low + -- Andreas Bombe Thu, 28 Feb 2008 02:31:56 +0100 - * Initial Debianized release. +anki (0.9.4-1) unstable; urgency=low - -- Nicholas Breen Sun, 12 Aug 2007 16:42:33 -0700 + * Initial release. (closes: #452067) + -- Andreas Bombe Mon, 25 Feb 2008 00:28:52 +0100 --- anki-0.9.6.orig/ankiqt/__init__.py +++ anki-0.9.6/ankiqt/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # Copyright: Damien Elmes # License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html --- anki-0.9.6.orig/ankiqt/ui/main.py +++ anki-0.9.6/ankiqt/ui/main.py @@ -492,26 +492,10 @@ return defaultDir def getSamplesDir(self): - path = os.path.join(ankiqt.runningDir, "libanki") + path = "/usr/share/doc/anki/examples" if not os.path.exists(path): - path = os.path.join( - os.path.join(ankiqt.runningDir, ".."), "libanki") - if not os.path.exists(path): - path = ankiqt.runningDir - if sys.platform.startswith("win32"): - path = os.path.split( - os.path.split(ankiqt.runningDir)[0])[0] - elif sys.platform.startswith("darwin"): - path = ankiqt.runningDir + "/../../.." - else: - path = os.path.join(path, "anki") - path = os.path.join(path, "samples") - path = os.path.normpath(path) - if os.path.exists(path): - if sys.platform.startswith("darwin"): - return self.openMacSamplesDir(path) - return path - return "" + return "" + return path def openMacSamplesDir(self, path): # some versions of macosx don't allow the open dialog to point inside @@ -919,7 +903,7 @@ def setLang(self): "Set the user interface language." - languageDir=os.path.join(ankiqt.modDir, "locale") + languageDir="/usr/share/locale" self.languageTrans = gettext.translation('ankiqt', languageDir, languages=[self.config["interfaceLang"]], fallback=True) @@ -1149,6 +1133,7 @@ ########################################################################## def setupAutoUpdate(self): + return # do not lookup latest upstream version in Debian packaged anki self.autoUpdate = ui.update.LatestVersionFinder(self) self.connect(self.autoUpdate, SIGNAL("newVerAvail"), self.newVerAvail) self.connect(self.autoUpdate, SIGNAL("clockIsOff"), self.clockIsOff) --- anki-0.9.6.orig/libanki/anki/lang.py +++ anki-0.9.6/libanki/anki/lang.py @@ -33,7 +33,7 @@ def setLang(lang, local=True): base = os.path.dirname(os.path.abspath(__file__)) - localeDir = os.path.join(base, "locale") + localeDir = "/usr/share/locale" if not os.path.exists(localeDir): localeDir = os.path.join( os.path.dirname(sys.argv[0]), "locale") --- anki-0.9.6.orig/libanki/anki/features/chinese/save_unihan.py +++ anki-0.9.6/libanki/anki/features/chinese/save_unihan.py @@ -1,7 +1,5 @@ # read unihan.txt and save it as a db -import psyco; psyco.full() - from sqlalchemy import (Table, Integer, Float, Unicode, Column, MetaData, ForeignKey, Boolean, String, Date, UniqueConstraint, UnicodeText)