pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/ats2
Module Name: pkgsrc
Committed By: nikita
Date: Thu Apr 14 20:13:19 UTC 2022
Modified Files:
pkgsrc/lang/ats2: Makefile PLIST
Added Files:
pkgsrc/lang/ats2: MESSAGE options.mk
Log Message:
ats2: Build emacs mode.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/ats2/MESSAGE pkgsrc/lang/ats2/options.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/ats2/Makefile pkgsrc/lang/ats2/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/ats2/Makefile
diff -u pkgsrc/lang/ats2/Makefile:1.1 pkgsrc/lang/ats2/Makefile:1.2
--- pkgsrc/lang/ats2/Makefile:1.1 Thu Apr 14 17:29:10 2022
+++ pkgsrc/lang/ats2/Makefile Thu Apr 14 20:13:19 2022
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2022/04/14 17:29:10 nikita Exp $
+# $NetBSD: Makefile,v 1.2 2022/04/14 20:13:19 nikita Exp $
DISTNAME= ATS2-Postiats-0.4.2
+PKGNAME= ${DISTNAME:S/ATS2-Postiats/ats2/}
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ats2-lang/}
EXTRACT_SUFX= .tgz
@@ -16,4 +17,16 @@ USE_TOOLS+= gmake
# build is not job safe
MAKE_JOBS_SAFE= no
+.include "options.mk"
+
+.if ${PKG_OPTIONS:Memacs}
+.include "../../editors/emacs/modules.mk"
+# flycheck is not packaged, only build ats-mode.
+pre-configure:
+ cd ${WRKSRC}/utils/emacs && ${EMACS_BIN} -batch -f batch-byte-compile ats2-mode.el
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/ats2-mode
+ ${INSTALL_DATA} ${WRKSRC}/utils/emacs/ats2-mode.e* \
+ ${DESTDIR}${EMACS_LISPPREFIX}/ats2-mode
+.endif
+
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/lang/ats2/PLIST
diff -u pkgsrc/lang/ats2/PLIST:1.1 pkgsrc/lang/ats2/PLIST:1.2
--- pkgsrc/lang/ats2/PLIST:1.1 Thu Apr 14 17:29:10 2022
+++ pkgsrc/lang/ats2/PLIST Thu Apr 14 20:13:19 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2022/04/14 17:29:10 nikita Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/04/14 20:13:19 nikita Exp $
bin/myatscc
bin/patscc
bin/patsopt
@@ -1724,3 +1724,5 @@ lib/ats2-postiats-${PKGVERSION}/share/at
@pkgdir lib/ats2-postiats-${PKGVERSION}/ccomp/atslib/output
@pkgdir lib/ats2-postiats-${PKGVERSION}/ccomp/atslib/lib64
@pkgdir lib/ats2-postiats-${PKGVERSION}/ccomp/atslib/lib32
+${PLIST.emacs}${EMACS_LISPPREFIX}/ats2-mode/ats2-mode.el
+${PLIST.emacs}${EMACS_LISPPREFIX}/ats2-mode/ats2-mode.elc
Added files:
Index: pkgsrc/lang/ats2/MESSAGE
diff -u /dev/null pkgsrc/lang/ats2/MESSAGE:1.1
--- /dev/null Thu Apr 14 20:13:19 2022
+++ pkgsrc/lang/ats2/MESSAGE Thu Apr 14 20:13:19 2022
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2022/04/14 20:13:19 nikita Exp $
+
+To use the Emacs ats mode add the following to your .emacs file:
+
+ (load-file "/usr/pkg/share/emacs/site-lisp/ats2-mode/ats2-mode.el")
+ (require 'ats-mode)
+
+===========================================================================
Index: pkgsrc/lang/ats2/options.mk
diff -u /dev/null pkgsrc/lang/ats2/options.mk:1.1
--- /dev/null Thu Apr 14 20:13:19 2022
+++ pkgsrc/lang/ats2/options.mk Thu Apr 14 20:13:19 2022
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2022/04/14 20:13:19 nikita Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ats2
+
+PKG_SUPPORTED_OPTIONS+= emacs
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if ${PKG_OPTIONS:Memacs}
+PLIST_VARS+= emacs
+PLIST.emacs= yes
+.endif
Home |
Main Index |
Thread Index |
Old Index