summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2002-11-01 02:52:02 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2002-11-01 02:52:02 +0000
commit08bd106430ca5599005323021f7635b2f1a1f72b (patch)
treed56e46390f1a7838a1a5eecfd8573e5eb47d0c98 /app-emacs/cdrw
parentmasked app-emacs/monk (incomplete for now) (diff)
downloadgentoo-2-08bd106430ca5599005323021f7635b2f1a1f72b.tar.gz
gentoo-2-08bd106430ca5599005323021f7635b2f1a1f72b.tar.bz2
gentoo-2-08bd106430ca5599005323021f7635b2f1a1f72b.zip
looks like an app-emacs/ import to me
Diffstat (limited to 'app-emacs/cdrw')
-rw-r--r--app-emacs/cdrw/ChangeLog11
-rw-r--r--app-emacs/cdrw/cdrw-1.2.ebuild55
-rw-r--r--app-emacs/cdrw/files/50cdrw-gentoo.el15
-rw-r--r--app-emacs/cdrw/files/digest-cdrw-1.21
4 files changed, 82 insertions, 0 deletions
diff --git a/app-emacs/cdrw/ChangeLog b/app-emacs/cdrw/ChangeLog
new file mode 100644
index 000000000000..f66af470aefd
--- /dev/null
+++ b/app-emacs/cdrw/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-emacs/cdrw
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/cdrw/ChangeLog,v 1.1 2002/11/01 02:52:00 mkennedy Exp $
+
+*cdrw-1.2 (31 Oct 2002)
+
+ 31 Oct 2002; Matthew Kennedy <mkennedy@gentoo.org> ChangeLog,
+ cdrw-1.2.ebuild, files/50cdrw-gentoo.el,
+ files/digest-cdrw-1.2 :
+
+ Initial import.
diff --git a/app-emacs/cdrw/cdrw-1.2.ebuild b/app-emacs/cdrw/cdrw-1.2.ebuild
new file mode 100644
index 000000000000..5660e2447c41
--- /dev/null
+++ b/app-emacs/cdrw/cdrw-1.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/cdrw/cdrw-1.2.ebuild,v 1.1 2002/11/01 02:52:00 mkennedy Exp $
+
+inherit elisp
+
+IUSE=""
+
+DESCRIPTION="Emacs dired frontend to various commandline CDROM burning tools"
+HOMEPAGE="ftp://ftp.cis.ohio-state.edu/pub/emacs-lisp/archive/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="virtual/emacs"
+RDEPEND="${DEPEND}
+ dev-perl/MP3-Info
+ media-sound/mpg321
+ app-cdr/cdrtools"
+
+S="${WORKDIR}/${P}"
+
+SITEFILE=50cdrw-gentoo.el
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ # extract mp3time script
+ sed -ne '641,694 {p;}' <cdrw.el |sed -e 's/^;\ //' >mp3time && \
+ chmod +x mp3time || die
+ # no reason to use non-free software
+ cp cdrw.el cdrw.el~ && sed -e 's/mpg123/mpg321/g' <cdrw.el~ >cdrw.el
+}
+
+src_compile() {
+ emacs --batch -f batch-byte-compile --no-site-file --no-init-file *.el || die
+}
+
+src_install() {
+ elisp-install ${PN} *.el *.elc
+ elisp-site-file-install ${FILESDIR}/${SITEFILE}
+
+ exeinto /usr/bin
+ doexe mp3time
+}
+
+pkg_postinst() {
+ elisp-site-regen
+ einfo "Please see ${SITELISP}/${PN}/cdrw.el for the complete documentation."
+}
+
+pkg_postrm() {
+ elisp-site-regen
+}
diff --git a/app-emacs/cdrw/files/50cdrw-gentoo.el b/app-emacs/cdrw/files/50cdrw-gentoo.el
new file mode 100644
index 000000000000..4893cdfbd9e6
--- /dev/null
+++ b/app-emacs/cdrw/files/50cdrw-gentoo.el
@@ -0,0 +1,15 @@
+
+;;; cdrw site-lisp configuration
+
+(setq load-path (cons "@SITELISP@" load-path))
+
+(autoload 'cdrw "cdrw" "CDRW Creation" t)
+(autoload 'cdrw-from-file "cdrw" "Load previously saved mark-file." t)
+
+;; This binds the commands that open CDRW buffers to "C-c @ l" and
+;; "C-c @ f" respectively. (the '@' character kinda looks like a CD
+;; :).
+
+(global-set-key "\C-c@" nil)
+(global-set-key "\C-c@l" 'cdrw)
+(global-set-key "\C-c@f" 'cdrw-from-file)
diff --git a/app-emacs/cdrw/files/digest-cdrw-1.2 b/app-emacs/cdrw/files/digest-cdrw-1.2
new file mode 100644
index 000000000000..e923f8047664
--- /dev/null
+++ b/app-emacs/cdrw/files/digest-cdrw-1.2
@@ -0,0 +1 @@
+MD5 dd0d2fabeb065b1e57bbb5ab198ec04b cdrw-1.2.tar.bz2 7797