##################### GENERAL ##################### 
GARNAME = elvis
GARVERSION = 2.2.0
GARELEASE = 1
HOME_URL = http://elvis.the-little-red-haired-girl.org/
CATEGORIES = app/editors
MASTER_SITES += ftp://ftp.cs.pdx.edu/pub/elvis/
DISTFILES = elvis-$(ORIGVERSION).tar.bz2
PATCHFILES = elvis.ref.c.getline.diff elvis-add-DESTDIR.patch
MAINTAINER = Felipe Sanchez <izto@asic-linux.com.mx>
LICENSE = Artistic license

DESCRIPTION = The elvis text editor 
define BLURB

Elvis is a superset of the classic vi editor with many new features
like multiple windows and edit buffers, syntax highlighting and 
multiple display modes. It is also much lighter than other modern
vi replacements like vim.

Elvis is the default Iztaci Linux text editor.
endef

##################### PACKAGING #####################


#IZTACI_PACKAGE_PATH =

# Users and groups the binary package will create
# WHEN INSTALLED ON THE DESTINATION SYSTEM
CREATE_GROUPS = 
CREATE_USERS = 

# This is to be appended to the package's installation script
# Use it to set file owners, permissions, DB initialization, etc.
# Remember any shell variables (Such as $ROOT) have to be escaped
# like this: \$$ROOT

define DOINST_APPEND
endef

# Required dependencies
define SLACK_REQUIRED
endef

# Suggested dependencies
define SLACK_SUGGESTS
endef

# Package conflicts (lprng vs cups for example)
define SLACK_CONFLICTS
endef



##################### BUILDING #####################


CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS)
NODIRPATHS = 

# Directories to be created as part of the install process.
# Can be inside the final package or just transient dirs we need
# while building it.
INSTALL_DIRS = $(DESTDIR)/usr $(DESTDIR)/usr/share/man/man1

# If some dirs are trying to install into /, list their names
# here, such as: prefix bindir mandir
INSTALL_OVERRIDE_DIRS = 


# Dependencies are of the form categorydir/packagedir
# LIBDEPS are for libraries, and DEPENDS are for everything else
DEPENDS =
LIBDEPS =
DEPENDS =
# Builddeps are installed in the build DESTIMG
BUILDDEPS =

##################### GAR #####################

# This should go before any hand-made rules.
include config.mk
include ../level.mk

##################### CUSTOMIZING #####################

test:
	@echo
	@echo -e "$(WARNCOLOR)No tests are available for this package$(NORMALCOLOR)"
	@echo


post-install:
	rm -v -f $(DESTDIR)/usr/bin/vi
	ln -sv elvis $(DESTDIR)/usr/bin/vi
	cp -av files/etc $(DESTDIR)/etc
	mv -v $(DESTDIR)/usr/share/doc/elvis/*.man $(DESTDIR)/usr/share/man/man1
	$(MAKE) etc-new
	$(MAKE) gzip-man
	$(MAKECOOKIE)

