| 1 | ##################################################################### |
|---|
| 2 | # OpenCSW build recipe for rlwrap |
|---|
| 3 | # |
|---|
| 4 | # Copyright 2009 Yann Rouillard <yann@pleiades.fr.eu.org> |
|---|
| 5 | # All rights reserved. Use is subject to license terms. |
|---|
| 6 | # |
|---|
| 7 | # Redistribution and/or use, with or without modification, is |
|---|
| 8 | # permitted. This software is without warranty of any kind. The |
|---|
| 9 | # author(s) shall not be liable in the event that use of the |
|---|
| 10 | # software causes damage. |
|---|
| 11 | ##################################################################### |
|---|
| 12 | |
|---|
| 13 | ###### Package information ####### |
|---|
| 14 | |
|---|
| 15 | NAME = rlwrap |
|---|
| 16 | VERSION = 0.37 |
|---|
| 17 | CATEGORIES = utils |
|---|
| 18 | GARTYPE = v2 |
|---|
| 19 | |
|---|
| 20 | DESCRIPTION = A readline wrapper |
|---|
| 21 | define BLURB |
|---|
| 22 | rlwrap is a readline wrapper, a small utility that uses the GNU readline library to allow the editing of keyboard input for any other command. It maintains a separate input history for each command, and can TAB-expand words using all previously seen words and/or a user-specified file. |
|---|
| 23 | endef |
|---|
| 24 | |
|---|
| 25 | PACKAGES = CSWrlwrap |
|---|
| 26 | |
|---|
| 27 | RUNTIME_DEP_PKGS = CSWlibreadline6 |
|---|
| 28 | |
|---|
| 29 | # We don't want to depend on OpenCSW perl |
|---|
| 30 | CHECKPKG_OVERRIDES_CSWrlwrap += missing-dependency|CSWperl |
|---|
| 31 | |
|---|
| 32 | # Reference to default paths in documentation or sample files, can be safely ignored |
|---|
| 33 | CHECKPKG_OVERRIDES_CSWrlwrap += file-with-bad-content|/usr/share|root/opt/csw/share/rlwrap/filters/paint_prompt |
|---|
| 34 | CHECKPKG_OVERRIDES_CSWrlwrap += file-with-bad-content|/usr/local|root/opt/csw/share/doc/rlwrap/NEWS |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | ###### Upstream and opencsw files information ####### |
|---|
| 38 | |
|---|
| 39 | MASTER_SITES = http://utopia.knoware.nl/~hlub/uck/rlwrap/ |
|---|
| 40 | |
|---|
| 41 | # We define upstream file regex so we can be notifed of new upstream software release |
|---|
| 42 | UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz |
|---|
| 43 | |
|---|
| 44 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 45 | DISTFILES += changelog.CSW |
|---|
| 46 | |
|---|
| 47 | # replace setenv with putenv |
|---|
| 48 | #PATCHFILES += putenv.patch |
|---|
| 49 | |
|---|
| 50 | ##### Build and installation information ##### |
|---|
| 51 | |
|---|
| 52 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 53 | |
|---|
| 54 | include gar/category.mk |
|---|
| 55 | |
|---|
| 56 | # the putenv patch modify configure.ac so we must re-generate configure |
|---|
| 57 | pre-configure: |
|---|
| 58 | cd $(WORKSRC) && autoconf |
|---|
| 59 | |
|---|
| 60 | post-merge: |
|---|
| 61 | @ginstall -D $(WORKDIR_FIRSTMOD)/changelog.CSW $(PKGROOT)$(docdir)/$(NAME)/changelog.CSW |
|---|
| 62 | @( for FILE in AUTHORS BUGS INSTALL NEWS README TODO; do \ |
|---|
| 63 | ginstall -D $(WORKSRC_FIRSTMOD)/$$FILE $(PKGROOT)$(docdir)/$(NAME)/`basename $$FILE`; \ |
|---|
| 64 | done ) |
|---|
| 65 | |
|---|