]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pkgs/vim/vim.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / vim / vim.nm
index 598b6a4421e65551469029c607b796ba4c49debe..20ba02658feec4cd91060b0e624625201b06d3a2 100644 (file)
@@ -1,66 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = vim
-PKG_VER        = 7.3
-PKG_REL        = 1
+name       = vim
+version    = 7.3
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Editors
-PKG_URL        = http://www.vim.org
-PKG_LICENSE    = PublicDomain/Charityware
-PKG_SUMMARY    = Very feature- and powerful editor.
+groups     = Base Applications/Editors
+url        = http://www.vim.org
+license    = PublicDomain/Charityware
+summary    = Very feature- and powerful editor.
 
-PKG_BUILD_DEPS+= libacl-devel libselinux-devel ncurses-devel
-
-define PKG_DESCRIPTION
+description
        Vim is a highly configurable text editor built to enable efficient \
        text editing. It is an improved version of the vi editor \
-       distributed with most UNIX systems. 
-endef
+       distributed with most UNIX systems.
+end
+
+source_dl  = ftp://ftp.vim.org/pub/vim/unix/
+sources    = %{thisapp}.tar.bz2
+
+DIR_APP        = %{DIR_SRC}/%{name}73
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               libacl-devel
+               libselinux-devel
+               ncurses-devel
+       end
 
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)73
+       configure_options += \
+               --enable-multibyte \
+               --enable-selinux
 
-CONFIGURE_OPTIONS += \
-       --enable-multibyte \
-       --enable-selinux
+       configure_cmds
+               echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
-endef
+       install_cmds
+               ln -sfv vim %{BUILDROOT}/usr/bin/vi
 
-define STAGE_INSTALL_CMDS
-       ln -sfv vim $(BUILDROOT)/usr/bin/vi
+               # Install configuration
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/vimrc %{BUILDROOT}/etc/vimrc
 
-       # Install configuration
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/vimrc $(BUILDROOT)/etc/vimrc
+               # Remove script for c-shell
+               rm -rf %{BUILDROOT}/usr/share/vim/vim73/tools/vim132
+       end
+end
 
-       # Remove script for c-shell
-       rm -rf $(BUILDROOT)/usr/share/vim/vim73/tools/vim132
-endef
+packages
+       package %{name}
+       end
+end