slang2 stable port information

# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: slang2
Version: 2.2.1
Revision: 1
Maintainer: Max Horn
License: Artistic
Homepage: http://www.jedsoft.org/slang/

# Dependencies:
BuildDependsOnly: True
BuildDepends: <<
libpng3,
pcre,
libiconv-dev
<<
Depends: %N-shlibs (= %v-%r)
Conflicts: slang
Replaces: slang

# Unpack Phase:
CustomMirror: <<
A: ftp://space.mit.edu/pub/davis/slang/
B: ftp://ftp.fu-berlin.de/pub/unix/misc/slang/
C: ftp://ftp.ntua.gr/pub/lang/slang/slang/
<<
Source: mirror:custom:v2.2/slang-%v.tar.bz2
Source-MD5: 51b7e9c29c6812f304531713e2ebf969

# Compile Phase:
SetCFLAGS: -isystem %p/include
NoSetCFLAGS: true
NoSetLDFLAGS: true
SetLDFLAGS: -Wl,-search_paths_first -L../src/elfobjs -L%p/lib

ConfigureParams: <<
--mandir=%p/share/man \
--with-ssl-library=%p/lib/system-openssl/lib \
--with-ssl-includes=%p/lib/system-openssl/include \
--with-slrnpull \
--without-onig \
--disable-dependency-tracking
<<
CompileScript: <<
./configure %c
make all install_doc_dir=%p/share/doc/%n
<<
InstallScript: <<
make install DESTDIR=%d install_doc_dir=%p/share/doc/%n
<<

SplitOff: <<
Package: %N-shlibs
Depends: <<
libpng3-shlibs,
pcre-shlibs,
libiconv
<<
Replaces: %N (<= 1.4.5-2)
Files: lib/libslang.*.dylib
Shlibs: %p/lib/libslang.2.dylib 2.0.0 %n (>= 2.1.4-1)
DocFiles: COPYING README
<<
DocFiles: COPYING README NEWS UPGRADE.txt
Description: S-Lang programming library, version 2
DescDetail: <<
S-Lang is an interpreted language that was designed from the start to
be easily embedded into a program to provide it with a powerful
extension language.

S-Lang also provides a platform-independent interface for screen
management, keymaps and low-level terminal I/O.
<<
DescPort: <<
CPPFLAGS is ignored, so we use CFLAGS instead.

We use env tricks to make sure the include files and libs in the build dir
are uesd, not any already installed ones.
<<