summaryrefslogtreecommitdiff
path: root/app-emacs/mldonkey
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-emacs/mldonkey
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/mldonkey')
-rw-r--r--app-emacs/mldonkey/Manifest7
-rw-r--r--app-emacs/mldonkey/files/50mldonkey-gentoo.el18
-rw-r--r--app-emacs/mldonkey/files/mldonkey-0.0.4b-vd.patch121
-rw-r--r--app-emacs/mldonkey/metadata.xml8
-rw-r--r--app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild34
5 files changed, 188 insertions, 0 deletions
diff --git a/app-emacs/mldonkey/Manifest b/app-emacs/mldonkey/Manifest
new file mode 100644
index 000000000000..f919fd21bc2e
--- /dev/null
+++ b/app-emacs/mldonkey/Manifest
@@ -0,0 +1,7 @@
+AUX 50mldonkey-gentoo.el 604 SHA256 8c58262b0bc0db1fb2155680e8c4772f564f46c6aece8abaefd42b4e6834fe7f SHA512 d89caa4fecb8d16df7595f770ad479adae0e094b36c04a6a6291abff0052d49d14afc835e38466f156a95579889c2f127fbafa1818bc14d4915851f9b4a9a2af WHIRLPOOL baddf16823f3c8dc14186a45e2bbca2063757d12873d09bdb5418f2cb40abc0ddbddc40a15de74ed52ccbaf6764d106aef25bf196d9eea953b827ddbf916e316
+AUX mldonkey-0.0.4b-vd.patch 3511 SHA256 216d1b48807fad944e871363606ce2962445f459f3afedc31f90fe6b4bc11fc2 SHA512 18ae6a4925b54b5d40ad9342fa65596df47e48a7223ca1a89c8622ab324f805d55c9bfaeea71c8465fd276997a34d979ff16532b8d8d86c4748fedf9ed02381b WHIRLPOOL 29702e538ab9baff0ff26f58d4417812faf63da4d3c167e4565dbf04232fa24cb48cbb8bf0dae2fc3110f886f0dcfcef80080475405084e7b916280141f448ad
+DIST mldonkey-el-0.0.4b.tar.gz 17442 SHA256 5b14873c45c13bd4da553457798cdd7e552fb00dcba880343a958e63823d3f06 SHA512 3c6a16292968e0f40d319614bfd2a53c9612ec4121c5720f51498d8983f6b944c38fc1d664f1c7ebe1d68653ba62d828fa00092b1a1d278547c225b33f4e740b WHIRLPOOL 07e14a910a6748f2e0faea78aca80ea95758fa598a01317074208dbec60b7c2d262eb2771f1b3764ebb557ed4fcd76446d93de0bed4b45e5952a27822991f857
+EBUILD mldonkey-0.0.4b-r1.ebuild 905 SHA256 07f49d82e7994bb43c6268bd737701ff7c9fa9d53ed5afce0f092b4cde277dc9 SHA512 695bfae2f15c0e63b35fd1bb8ec81796accc1b4b85ed602fffe52479a79fd072c0a1b40025b984669dc03223d090d950e4176d86b9fc85f34c0f404d2287a9c5 WHIRLPOOL 87b9047c8dcbc3d45095c93ed6abd93cfea3a788bed0b6d4c84073e08518089218bc4ac60a0dddbd897dde6aa19ebe5cfe32b0b36642183caef53cea0af4797e
+MISC ChangeLog 2390 SHA256 defefca800165efca72fa9e73d4ae6e748bf003665a2c757dced4edf0423def5 SHA512 0085bb9b4a1f954304235a1edb772d2684c51e639af90a8ccbdc7092a94a74b05bd434095f2a8f8df65e6ca0c70c7ad4ee0c32eb92f8326063747820e2b7167a WHIRLPOOL ea009d8d749ab0205ab3b7e306e815b6c4d083457657a1be1bb61669a1be10d1ec5c485f703f23de28f55e414b3870ca5ced68e5ee0bfd52f9cf46c58248ea9f
+MISC ChangeLog-2015 3573 SHA256 20bd74fa24e0f1732b8b7c2c74401f81ddc71f79f99f8d658fb53a3b2e180ee9 SHA512 b0a66187daf0a69eea9cd3b7d63ea19fbef3cbaf1ff44d05b383c61134ca7f96223654dab01047654097f98521d7f736915610d36f89acc1a5709944c3afbf87 WHIRLPOOL 8c8bf80da81dbc6120570860a2e6831ece29795491d0940c4818a635ebdc2978245e0458642312ebd997983450724506c77622b856bb25e32fe40ca981ac0114
+MISC metadata.xml 259 SHA256 4d59c14917cb31648858cb06bc3c7f224cf1c3906dc3166f8f0d8b8e02970928 SHA512 9a5c456aae7919a4cdbb10b67a27c232daf2ec6db4202e04ba6d5873242fc982a659410443dd6fb4498d42af00b495acc51a6a2cbe12aeab91b585dfac7233a3 WHIRLPOOL 08c68f505a8cc685c52f3a54a07582b64ff7c0b4682c8f9333286fbb5caf4a8d406933c7937fe8c9611f456b5a549ee100657a1c9dc766c8965772f277bf31fb
diff --git a/app-emacs/mldonkey/files/50mldonkey-gentoo.el b/app-emacs/mldonkey/files/50mldonkey-gentoo.el
new file mode 100644
index 000000000000..c3bb77b43aaa
--- /dev/null
+++ b/app-emacs/mldonkey/files/50mldonkey-gentoo.el
@@ -0,0 +1,18 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'mldonkey "mldonkey" "Run the MlDonkey interface." t)
+
+(setq mldonkey-vd-filename-filters
+ '(mldonkey-vd-filename-remove-p20
+ mldonkey-vd-filename-remove-trailing-ws))
+
+(setq mldonkey-vd-sort-functions
+ '((not mldonkey-vd-sort-dl-state)
+ (not mldonkey-vd-sort-dl-percent)))
+
+(setq mldonkey-vd-sort-fin-functions
+ '(mldonkey-vd-sort-dl-number))
+
+(add-hook 'mldonkey-pause-hook 'mldonkey-vd)
+(add-hook 'mldonkey-resume-hook 'mldonkey-vd)
+(add-hook 'mldonkey-commit-hook 'mldonkey-vd)
+(add-hook 'mldonkey-recover-temp-hook 'mldonkey-vd)
diff --git a/app-emacs/mldonkey/files/mldonkey-0.0.4b-vd.patch b/app-emacs/mldonkey/files/mldonkey-0.0.4b-vd.patch
new file mode 100644
index 000000000000..a763643f78b2
--- /dev/null
+++ b/app-emacs/mldonkey/files/mldonkey-0.0.4b-vd.patch
@@ -0,0 +1,121 @@
+Patch by Peter Salvi <vukung@yahoo.com> to conform to MLDonkey 2.9.2,
+taken from http://www.emacswiki.org/cgi-bin/wiki/download/mldonkey-vd.patch.gz
+and ported to mldonkey-0.0.4b
+
+--- mldonkey-el-0.0.4b-orig/mldonkey-vd.el 2005-01-15 20:54:53.000000000 +0100
++++ mldonkey-el-0.0.4b/mldonkey-vd.el 2008-01-03 10:53:18.000000000 +0100
+@@ -107,6 +107,26 @@
+ :group 'mldonkey
+ :type 'boolean)
+
++(defcustom mldonkey-show-release-status nil
++ "Show the release status of a download."
++ :group 'mldonkey
++ :type 'boolean)
++
++(defcustom mldonkey-show-comments nil
++ "Show the number of comments in a download."
++ :group 'mldonkey
++ :type 'boolean)
++
++(defcustom mldonkey-show-user nil
++ "Show the user of a download."
++ :group 'mldonkey
++ :type 'boolean)
++
++(defcustom mldonkey-show-group nil
++ "Show the group of a download."
++ :group 'mldonkey
++ :type 'boolean)
++
+ (defcustom mldonkey-show-filename t
+ "Show the filename of a download."
+ :group 'mldonkey
+@@ -275,6 +295,14 @@
+ ;; FIXME: does a network may contain spaces?
+ "\\[\\(.*?\\)[ \t]*\\([0-9]+\\)\\]" ; network and number
+ "[ \t]+"
++ "\\(R\\|\\-\\)" ; release status
++ "[ \t]+"
++ "\\([0-9]+\\)" ; comments
++ "[ \t]+"
++ "\\([^ \t]+\\)" ; user
++ "[ \t]+"
++ "\\([^ \t]+\\)" ; group
++ "[ \t]+"
+ "\\([^\n]+\\)" ; filename
+ "[ \t]+"
+ "\\([0-9\\.]+\\)" ; percent
+@@ -283,10 +311,9 @@
+ "[ \t]+"
+ "\\([0-9\\.]+\\(?:gb\\|mb\\|kb\\|b\\)\\)" ; size
+ "[ \t]+"
+- ;; "\\([0-9\\.]+\\(?:gb\\|mb\\|kb\\|b\\|[ \t]*chunks\\)\\)" ; left
+- "\\([0-9]+%\\)" ; avail
++ "\\([0-9:\\-]+\\)" ; last seen
+ "[ \t]+"
+- "\\([0-9]+\\):\\([0-9\\-]+\\)" ; age and last seen
++ "\\([0-9:\\-]+\\)" ; age
+ "[ \t]+"
+ "\\([0-9]+\\)/\\([0-9]+\\)" ; active sources and total sources
+ "[ \t]+"
+@@ -454,7 +481,7 @@
+ (setq mldonkey-vd-num-downloading (1+ mldonkey-vd-num-downloading))
+ (add-to-list
+ 'mldonkey-vd-downloading-list
+- (vconcat (mapcar 'mldonkey-vd-get-match (number-sequence 1 13))))))
++ (vconcat (mapcar 'mldonkey-vd-get-match (number-sequence 1 16))))))
+
+
+ (defun mldonkey-vd-get-finished ()
+@@ -523,13 +550,16 @@
+
+ (vector "net "
+ "# "
++ "rel "
++ "com "
++ "user "
++ "gr "
+ "file "
+ "% "
+ "down "
+ "size "
+- "av "
+- "a "
+ "l "
++ "a "
+ "as "
+ "ts "
+ "kb/s "
+@@ -553,8 +583,11 @@
+
+ (vector 'right
+ 'right
+- 'left
++ 'right
+ 'right
++ 'left
++ 'left
++ 'left
+ 'right
+ 'right
+ 'right
+@@ -584,13 +617,16 @@
+
+ (vector mldonkey-show-network
+ mldonkey-show-number
++ mldonkey-show-release-status
++ mldonkey-show-comments
++ mldonkey-show-user
++ mldonkey-show-group
+ mldonkey-show-filename
+ mldonkey-show-percent
+ mldonkey-show-downloaded
+ mldonkey-show-size
+- mldonkey-show-avail
+- mldonkey-show-days
+ mldonkey-show-last-seen
++ mldonkey-show-days
+ mldonkey-show-active-sources
+ mldonkey-show-total-sources
+ mldonkey-show-rate
diff --git a/app-emacs/mldonkey/metadata.xml b/app-emacs/mldonkey/metadata.xml
new file mode 100644
index 000000000000..c438baf3b326
--- /dev/null
+++ b/app-emacs/mldonkey/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild b/app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild
new file mode 100644
index 000000000000..7f128b35f900
--- /dev/null
+++ b/app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit elisp
+
+MY_P="${PN}-el-${PV}"
+DESCRIPTION="An Emacs Lisp interface to the MLDonkey core"
+HOMEPAGE="http://www.emacswiki.org/emacs/MlDonkey
+ http://web.archive.org/web/20070107165326/www.physik.fu-berlin.de/~dhansen/mldonkey/"
+SRC_URI="http://www.physik.fu-berlin.de/%7Edhansen/mldonkey/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+S="${WORKDIR}/${MY_P}"
+ELISP_PATCHES="${P}-vd.patch"
+SITEFILE="50${PN}-gentoo.el"
+
+src_compile() {
+ elisp-compile ml*.el
+}
+
+pkg_postinst() {
+ elisp-site-regen
+ ewarn
+ ewarn "If your network gets really slow when you use mldonkey,"
+ ewarn "consider reducing the max number of connections. See bug #50510."
+ ewarn
+ elog "Remember to install net-p2p/mldonkey separately if you want to work"
+ elog "with a local instance."
+}