import (rather add since cvs re-import sucks) emacs-24.2

from Jeremie Courreges-Anglas (MAINTAINER) with feedback from various people

ok sthen@ mikeb@
This commit is contained in:
jasper 2012-12-06 15:46:11 +00:00
parent 06cac66408
commit 2fd051c77e
5 changed files with 4098 additions and 0 deletions

120
editors/emacs/Makefile Normal file
View File

@ -0,0 +1,120 @@
# $OpenBSD: Makefile,v 1.33 2012/12/06 15:46:11 jasper Exp $
COMMENT= GNU editor: extensible, customizable, self-documenting
VERSION= 24.2
DISTNAME= emacs-${VERSION}
CATEGORIES= editors
HOMEPAGE= http://www.gnu.org/software/emacs/
MAINTAINER= Jeremie Courreges-Anglas <jca+open@wxcvbn.org>
# GPLv3+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
USE_GMAKE= Yes
FLAVORS= gtk3 athena no_x11
FLAVOR?=
GCCARCH= ${MACHINE_ARCH}-unknown-openbsd
CONFIGURE_STYLE= gnu
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-aux
CONFIGURE_ARGS= --build="${GCCARCH}" \
--without-compress-info
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng \
-DHAVE_SOUND" \
LDFLAGS="-L${LOCALBASE}/lib -nopie"
CFLAGS+= -fno-pie
MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}" \
LOGNAME="${SHAREOWN}"
SUBST_VARS= GCCARCH VERSION
WANTLIB= c m ncurses ossaudio pthread gnutls xml2
LIB_DEPENDS= security/gnutls textproc/libxml
.if ${FLAVOR:Mno_x11}
. if ${FLAVOR:Mathena}
ERRORS= "Fatal: athena and no_x11 flavors are mutually exclusive"
. elif ${FLAVOR:Mgtk3}
ERRORS= "Fatal: gtk3 and no_x11 flavors are mutually exclusive"
. endif
CONFIGURE_ARGS+= --without-x \
--without-dbus \
--without-gconf \
--without-gsettings
.elif ${FLAVOR:Mathena}
CONFIGURE_ARGS+= --with-x-toolkit=athena
LIB_DEPENDS+= x11/Xaw3d \
x11/dbus \
x11/gnome/librsvg \
devel/gconf2 \
graphics/png \
graphics/tiff \
graphics/libungif \
graphics/ImageMagick
WANTLIB+= GL ICE SM X11 Xaw3d Xext Xft Xmu Xpm Xrender Xt expat \
fontconfig freetype iconv intl pixman-1 pthread-stubs \
xcb xcb-render xcb-shm z MagickCore MagickWand cairo \
dbus-1 gconf-2 gdk_pixbuf-2.0 gif gio-2.0 glib-2.0 \
gobject-2.0 jpeg png rsvg-2 tiff
RUN_DEPENDS= devel/xdg-utils
.elif ${FLAVOR:Mgtk3}
MODULES+= devel/gettext
CONFIGURE_ARGS+= --with-x-toolkit=gtk3
LIB_DEPENDS+= x11/gtk+3 \
x11/dbus \
x11/gnome/librsvg \
devel/gconf2 \
graphics/png \
graphics/tiff \
graphics/libungif \
graphics/ImageMagick
WANTLIB+= GL ICE SM X11 Xft Xpm Xrender expat fontconfig \
freetype iconv intl pixman-1 pthread-stubs xcb \
xcb-render xcb-shm z MagickCore MagickWand atk-1.0 \
cairo cairo-gobject dbus-1 gconf-2 gdk-3 \
gdk_pixbuf-2.0 gif gio-2.0 glib-2.0 gobject-2.0 gtk-3 \
jpeg pango-1.0 pangocairo-1.0 pangoft2-1.0 png rsvg-2 \
tiff \
${MODGETTEXT_WANTLIB}
RUN_DEPENDS= devel/xdg-utils
.else
MODULES+= devel/gettext
CONFIGURE_ARGS+= --with-x-toolkit=gtk
LIB_DEPENDS+= x11/gtk+2 \
x11/dbus \
x11/gnome/librsvg \
devel/gconf2 \
graphics/png \
graphics/tiff \
graphics/libungif \
graphics/ImageMagick
WANTLIB+= GL ICE SM X11 Xcomposite Xcursor Xdamage Xext Xfixes \
Xft Xi Xinerama Xpm Xrandr Xrender expat fontconfig \
freetype iconv intl pixman-1 pthread-stubs xcb \
xcb-render xcb-shm z MagickCore MagickWand atk-1.0 \
dbus-1 cairo gconf-2 gdk-x11-2.0 gdk_pixbuf-2.0 gif \
gio-2.0 glib-2.0 gobject-2.0 gtk-x11-2.0 jpeg \
pango-1.0 pangocairo-1.0 pangoft2-1.0 png rsvg-2 tiff \
${MODGETTEXT_WANTLIB}
RUN_DEPENDS= devel/xdg-utils
.endif
post-install:
chmod -t ${PREFIX}/bin/emacs
.include <bsd.port.mk>

2
editors/emacs/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (emacs-24.2.tar.gz) = bZiS3/bhdh1KXrogcSvrpPN9d6GW+AIQgaLmn8tb01c=
SIZE (emacs-24.2.tar.gz) = 51471017

25
editors/emacs/pkg/DESCR Normal file
View File

@ -0,0 +1,25 @@
GNU Emacs is an extensible, customizable text editor—and more. At its
core is an interpreter for Emacs Lisp, a dialect of the Lisp
programming language with extensions to support text editing. The
features of GNU Emacs include:
- Content-sensitive editing modes, including syntax coloring, for a
variety of file types including plain text, source code, and HTML.
- Complete built-in documentation, including a tutorial for new
users.
- Full Unicode support for nearly all human languages and their
scripts.
- Highly customizable, using Emacs Lisp code or a graphical
interface.
- A large number of extensions that add other functionality,
including a project planner, mail and news reader, debugger
interface, calendar, and more. Many of these extensions are
distributed with GNU Emacs; others are available separately.
This package now includes the Elisp source files previously available in
the emacs-el package.
Flavors:
no_x11 - build without X11 support
athena - build with athena toolkit instead of gtk2
gtk3 - build with gtk3 instead of gtk2

3934
editors/emacs/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff

17
editors/emacs/pkg/README Normal file
View File

@ -0,0 +1,17 @@
$OpenBSD: README,v 1.1 2012/12/06 15:46:11 jasper Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
D-Bus possible issues
=====================
You may experience a bug in graphical Emacs sessions (freeze/crash at
exit time). Ensuring you have a D-Bus user session started should fix
this. See the D-Bus pkg-readme.
Dired and ls(1)
===============
Dired attempts to use the --dired GNU ls(1) switch, which OpenBSD ls(1)
doesn't support. Read info '(emacs) Dired Enter' and
'(emacs) ls in Lisp'. GNU ls is available in the coreutils package.