From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-emacs/mldonkey/Manifest | 6 + app-emacs/mldonkey/files/50mldonkey-gentoo.el | 18 +++ .../mldonkey/files/mldonkey-0.0.4b-emacs-26.patch | 14 +++ app-emacs/mldonkey/files/mldonkey-0.0.4b-vd.patch | 121 +++++++++++++++++++++ app-emacs/mldonkey/metadata.xml | 9 ++ app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild | 34 ++++++ 6 files changed, 202 insertions(+) create mode 100644 app-emacs/mldonkey/Manifest create mode 100644 app-emacs/mldonkey/files/50mldonkey-gentoo.el create mode 100644 app-emacs/mldonkey/files/mldonkey-0.0.4b-emacs-26.patch create mode 100644 app-emacs/mldonkey/files/mldonkey-0.0.4b-vd.patch create mode 100644 app-emacs/mldonkey/metadata.xml create mode 100644 app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild (limited to 'app-emacs/mldonkey') diff --git a/app-emacs/mldonkey/Manifest b/app-emacs/mldonkey/Manifest new file mode 100644 index 000000000000..04b76c7dfb10 --- /dev/null +++ b/app-emacs/mldonkey/Manifest @@ -0,0 +1,6 @@ +AUX 50mldonkey-gentoo.el 604 BLAKE2B 52632176ed6adc1cb0c871bfc94b2c01d5ec26b1950a220981f955e015156581feb932cc73888eb2920b93bdeacf2340b560f6fcce12cdf5f16eeaee4a093c9f SHA512 d89caa4fecb8d16df7595f770ad479adae0e094b36c04a6a6291abff0052d49d14afc835e38466f156a95579889c2f127fbafa1818bc14d4915851f9b4a9a2af +AUX mldonkey-0.0.4b-emacs-26.patch 387 BLAKE2B aa881c515f8c1d5125af2bd237e94ba20649087c95153f8ce92323dd977d7878475c8709057a3725ed78cbf3d777fb7b5ae00c6a911da75869232ae228edffc4 SHA512 f00edaf33d8d182e7c7e432cfcf4f0ac9b6a8f6f68d44266e9dbed53657c00bc5db5b1f6c5e190988c217711de5dcfdaef091de2581425be7bce2a44b8a0c9d6 +AUX mldonkey-0.0.4b-vd.patch 3511 BLAKE2B 00e05b1d18183fd8be439e7987b9dabdfb0c3e419b5497842c7598e534ae3e867943244a17991ce573dc0b3d86ab2844bba7cc09738d0ead137199a2bdfeb3fc SHA512 18ae6a4925b54b5d40ad9342fa65596df47e48a7223ca1a89c8622ab324f805d55c9bfaeea71c8465fd276997a34d979ff16532b8d8d86c4748fedf9ed02381b +DIST mldonkey-el-0.0.4b.tar.gz 17442 BLAKE2B d9057a00c3b3532162564f59afb838a41b83b17adeb569d86c13cef8a6338083f12d078a19d0568936d9116e0c9adf0b53db3933116dc46925ac095c1a529d89 SHA512 3c6a16292968e0f40d319614bfd2a53c9612ec4121c5720f51498d8983f6b944c38fc1d664f1c7ebe1d68653ba62d828fa00092b1a1d278547c225b33f4e740b +EBUILD mldonkey-0.0.4b-r1.ebuild 926 BLAKE2B 442018577f992d42349d97f58dffeb5749229011602e6117ef3001a211b076409705e9c503bf2cf485eda552e90110f41cf3a472673e20adb31e52b20fdb99e9 SHA512 9a85aadc2beeeceebc925cb14683331528d728758873d73aa04e180af93e4f469a0a74b55c230af13411d6e1a816e3effaac65e37e46b2487731f176cdebee83 +MISC metadata.xml 282 BLAKE2B 432e60a3b04def9f566fde3852011e006c0d578c72c42115734d1af5c128440fcee68134c8f891baad437e64a8d61fbbac49e70a35ed4f6f85641e888d3a2547 SHA512 1838e22e1f5b849b816a05d1b25bd81333c8cf67ceb996177e05ba7a555b8e0e307e62cb53e6f1217f4216823e2fecf050e85437678503d60e10c6b2d5303072 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-emacs-26.patch b/app-emacs/mldonkey/files/mldonkey-0.0.4b-emacs-26.patch new file mode 100644 index 000000000000..0548fd96c97f --- /dev/null +++ b/app-emacs/mldonkey/files/mldonkey-0.0.4b-emacs-26.patch @@ -0,0 +1,14 @@ +Fix byte compilation with Emacs 26. +https://bugs.gentoo.org/647638 + +--- mldonkey-el-0.0.4b-orig/mldonkey-vd.el ++++ mldonkey-el-0.0.4b/mldonkey-vd.el +@@ -801,7 +801,7 @@ + (insert "\n"))) + + +-(defun mldonkey-vd-insert (&optional ignore-1 &optional ignore-2) ++(defun mldonkey-vd-insert (&optional ignore-1 ignore-2) + + "Insert the table with the downloads in the MlDonkey buffer." + 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 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..c918cdef9591 --- /dev/null +++ b/app-emacs/mldonkey/metadata.xml @@ -0,0 +1,9 @@ + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + 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..12ed071cfa32 --- /dev/null +++ b/app-emacs/mldonkey/mldonkey-0.0.4b-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2018 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="https://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 ${P}-emacs-26.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." +} -- cgit v1.2.3