diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2009-06-17 03:51:58 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2009-06-17 03:51:58 +0000 |
commit | 1b83dffcf984a7fec53efd338502749bd45198c2 (patch) | |
tree | 24578ca79348b1f3234ee4cf2fa5d502d3b7a889 /editors/emacs-devel | |
parent | ed9c31b9e739851e393b770a546c0f6907481226 (diff) | |
download | ports-1b83dffcf984a7fec53efd338502749bd45198c2.tar.gz ports-1b83dffcf984a7fec53efd338502749bd45198c2.zip |
Notes
Diffstat (limited to 'editors/emacs-devel')
-rw-r--r-- | editors/emacs-devel/Makefile | 16 | ||||
-rw-r--r-- | editors/emacs-devel/files/patch-sources.el | 10 | ||||
-rw-r--r-- | editors/emacs-devel/pkg-plist | 178 |
3 files changed, 204 insertions, 0 deletions
diff --git a/editors/emacs-devel/Makefile b/editors/emacs-devel/Makefile index c1cd1982a356..ad6839468f60 100644 --- a/editors/emacs-devel/Makefile +++ b/editors/emacs-devel/Makefile @@ -79,8 +79,16 @@ INFO= ada-mode auth autotype calc ccmode cl dbus dired-x \ LATEST_LINK= emacs23 +OPTIONS= SOURCES "Install source code" ON + .include <bsd.port.pre.mk> +.if defined(WITH_SOURCES) +PLIST_SUB+= SOURCES="" +.else +PLIST_SUB+= SOURCES="@comment " +.endif + .if ${ARCH} == "ia64" BROKEN= Emacs 22.X and later does not currently build on ia64 .endif @@ -99,5 +107,13 @@ pre-everything:: post-patch: @${RM} -f ${WRKSRC}/info/* + @${REINPLACE_CMD} -e "s/%%EMACS_VER%%/${EMACS_VER}/g" -e "s/%%DATADIR%%/${DATADIR:C/\//\\\//g}/g" ${WRKSRC}/sources.el + +.if defined(WITH_SOURCES) +post-install: + @${MKDIR} ${DATADIR}/${EMACS_VER}/src + @${INSTALL_DATA} ${WRKSRC}/src/*.[ch] ${DATADIR}/${EMACS_VER}/src + @${INSTALL_DATA} ${WRKSRC}/sources.el ${DATADIR}/${EMACS_VER}/site-lisp/site-start.el +.endif .include <bsd.port.post.mk> diff --git a/editors/emacs-devel/files/patch-sources.el b/editors/emacs-devel/files/patch-sources.el new file mode 100644 index 000000000000..6845a02d9f93 --- /dev/null +++ b/editors/emacs-devel/files/patch-sources.el @@ -0,0 +1,10 @@ + +$FreeBSD$ + +--- /dev/null ++++ sources.el +@@ -0,0 +1,4 @@ ++;;; Path to Emacs C Sources. ++(when (string-match (regexp-quote "%%EMACS_VER%%") emacs-version) ++ (setq find-function-C-source-directory ++ "%%DATADIR%%/%%EMACS_VER%%/src")) diff --git a/editors/emacs-devel/pkg-plist b/editors/emacs-devel/pkg-plist index c3fe339c6da1..12f799e3629e 100644 --- a/editors/emacs-devel/pkg-plist +++ b/editors/emacs-devel/pkg-plist @@ -3153,6 +3153,183 @@ share/applications/emacs.desktop %%DATADIR%%/%%EMACS_VER%%/lisp/xt-mouse.el.gz %%DATADIR%%/%%EMACS_VER%%/lisp/xt-mouse.elc %%DATADIR%%/%%EMACS_VER%%/site-lisp/subdirs.el +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/site-lisp/site-start.el +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/Makefile.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/alloc.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/atimer.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/atimer.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/blockinput.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/buffer.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/buffer.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/bytecode.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/callint.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/callproc.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/casefiddle.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/casetab.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/category.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/category.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ccl.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ccl.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/character.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/character.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/charset.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/charset.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/chartab.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/cm.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/cm.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/cmds.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/coding.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/coding.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/commands.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/composite.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/composite.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/config.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/data.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/dbusbind.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/dired.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/dispextern.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/dispnew.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/disptab.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/doc.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/doprnt.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/dosfns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/dosfns.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ecrt0.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/editfns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/emacs-icon.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/emacs.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/epaths.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/eval.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/fileio.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/filelock.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/filemode.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/firstfile.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/floatfns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/fns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/font.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/font.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/fontset.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/fontset.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/frame.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/frame.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/fringe.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ftfont.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ftfont.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ftxfont.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/getloadavg.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/getpagesize.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/gmalloc.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/gtkutil.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/gtkutil.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/image.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/indent.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/indent.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/insdel.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/intervals.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/intervals.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/keyboard.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/keyboard.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/keymap.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/keymap.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/lastfile.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/lisp.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/lread.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/macros.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/macros.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/marker.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/md5.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/md5.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/mem-limits.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/menu.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/menu.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/minibuf.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/mktime.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/msdos.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/msdos.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ndir.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/nsgui.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/nsterm.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/point.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/pre-crt0.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/prefix-args.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/print.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/process.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/process.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/puresize.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/ralloc.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/regex.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/regex.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/region-cache.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/region-cache.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/scroll.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/search.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/sheap.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/sound.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/strftime.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/syntax.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/syntax.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/sysdep.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/sysselect.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/syssignal.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/systime.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/systty.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/syswait.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/term.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/termcap.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/termchar.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/termhooks.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/terminal.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/terminfo.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/termopts.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/textprop.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/tparam.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/undo.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexaix.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexalpha.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexcw.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexec.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexelf.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexhp9k800.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexmacosx.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexsol.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/unexw32.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/vm-limit.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w16select.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32console.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32fns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32font.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32font.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32gui.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32heap.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32heap.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32inevt.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32inevt.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32menu.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32proc.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32reg.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32select.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32term.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32term.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32uniscribe.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/w32xfns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/widget.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/widget.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/widgetprv.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/window.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/window.h +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xdisp.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xfaces.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xfns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xfont.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xftfont.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xmenu.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xrdb.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xselect.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xsmfns.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xterm.c +%%SOURCES%%%%DATADIR%%/%%EMACS_VER%%/src/xterm.h %%DATADIR%%/site-lisp/subdirs.el share/icons/hicolor/128x128/apps/emacs.png share/icons/hicolor/16x16/apps/emacs.png @@ -3167,6 +3344,7 @@ share/icons/hicolor/scalable/apps/emacs.svg share/icons/hicolor/scalable/mimetypes/emacs-document.svg var/games/emacs/snake-scores var/games/emacs/tetris-scores +%%SOURCES%%@dirrm %%DATADIR%%/%%EMACS_VER%%/src @dirrm %%DATADIR%%/%%EMACS_VER%%/site-lisp @dirrm %%DATADIR%%/%%EMACS_VER%%/lisp/url @dirrm %%DATADIR%%/%%EMACS_VER%%/lisp/textmodes |