create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+102
View File
@@ -0,0 +1,102 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
WorkDir = "."
WORKDIR = "%s/%s-%s" % (get.workDIR(), get.srcNAME(), get.srcVERSION())
NCURSES = "ncurses-build"
NCURSESW = "ncursesw-build"
CONFIGPARAMS = "--without-debug \
--with-shared \
--with-normal \
--without-profile \
--disable-rpath \
--enable-const \
--enable-largefile \
--with-terminfo-dirs='/etc/terminfo:/usr/share/terminfo' \
--disable-termcap \
--enable-hard-tabs \
--enable-xmc-glitch \
--enable-colorfgbg \
--with-rcs-ids \
--with-mmask-t='long' \
--without-ada \
--enable-symlinks \
--without-gpm"
def setup():
shelltools.makedirs(NCURSES)
shelltools.makedirs(NCURSESW)
shelltools.cd(NCURSESW)
global CONFIGPARAMS
if get.buildTYPE() == "_emul32":
pisitools.flags.add("-m32")
pisitools.ldflags.add("-m32")
shelltools.export("PKG_CONFIG_LIBDIR", "/usr/lib32/pkgconfig")
pisitools.dosed("%s/misc/gen-pkgconfig.in" % WORKDIR, "^(show_prefix=).*", "\\1'/usr'")
CONFIGPARAMS += " --prefix=/_emul32 \
--libdir=/usr/lib32 \
--libexecdir=/_emul32/lib \
--bindir=/_emul32/bin \
--sbindir=/_emul32/sbin \
--mandir=/_emul32/share/man"
else:
CONFIGPARAMS += " --prefix=/usr \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--mandir=/usr/share/man"
shelltools.system("%s/configure --enable-widec --enable-pc-files %s" % (WORKDIR, CONFIGPARAMS))
def build():
global CONFIGPARAMS
shelltools.cd(NCURSESW)
autotools.make()
if not get.buildTYPE() == "_emul32" and get.ARCH() == "x86_64": CONFIGPARAMS += " --with-chtype=long"
shelltools.cd("../%s" % NCURSES)
shelltools.system("%s/configure %s" % (WORKDIR, CONFIGPARAMS))
autotools.make()
def install():
shelltools.cd(NCURSESW)
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
LIB = "/usr/lib32" if get.buildTYPE() == "_emul32" else "/usr/lib"
print LIB
for lib in ["ncurses", "form", "panel", "menu"]:
shelltools.echo("lib%s.so" % lib, "INPUT(-l%sw)" % lib)
pisitools.dolib_so("lib%s.so" % lib, destinationDirectory = LIB)
pisitools.dosym("lib%sw.a" % lib, "%s/lib%s.a" % (LIB, lib))
pisitools.dosym("libncurses++w.a", "%s/libncurses++.a" % LIB)
for lib in ["ncurses", "ncurses++", "form", "panel", "menu"]:
pisitools.dosym("%sw.pc" % lib, "%s/pkgconfig/%s.pc" % (LIB, lib))
shelltools.echo("libcursesw.so", "INPUT(-lncursesw)")
pisitools.dolib_so("libcursesw.so", destinationDirectory = LIB)
pisitools.dosym("libncurses.so", "%s/libcurses.so" % LIB)
pisitools.dosym("libncursesw.a", "%s/libcursesw.a" % LIB)
pisitools.dosym("libncurses.a", "%s/libcurses.a" % LIB)
shelltools.cd("../%s" % NCURSES)
for lib in ["ncurses", "form", "panel", "menu"]:
pisitools.dolib_so("lib/lib%s.so.%s" % (lib, get.srcVERSION()), destinationDirectory = LIB)
pisitools.dosym("lib%s.so.%s" % (lib, get.srcVERSION()), "%s/lib%s.so.5" % (LIB, lib))
if get.buildTYPE() == "_emul32":
pisitools.removeDir("/_emul32")
return
shelltools.cd(WORKDIR)
shelltools.system("grep -B 100 '$Id' README > license.txt")
pisitools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO", "license.txt")
+101
View File
@@ -0,0 +1,101 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>ncurses</Name>
<Homepage>http://www.gnu.org/software/ncurses/ncurses.html</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<Summary>Console display library</Summary>
<Description>The NCurses is a library of functions that manage an application's display on character-cell terminals. The NCurses library defines many functions such as moving mouse and cursor, keyboard mapping and dispaying in color.</Description>
<Archive sha1sum="3e042e5f2c7223bffdaac9646a533b8c758b65b5" type="targz">mirrors://gnu/ncurses/ncurses-5.9.tar.gz</Archive>
<BuildDependencies>
<Dependency>gnuconfig</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>ncurses</Name>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="library">/lib</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/terminfo</Path>
<Path fileType="data">/usr/share/tabset</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>ncurses-devel</Name>
<PartOf>system.devel</PartOf>
<Summary>Development files for ncurses</Summary>
<RuntimeDependencies>
<Dependency release="current">ncurses</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/static</Path>
<Path fileType="library">/usr/lib32/static</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<Package>
<Name>ncurses-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for ncurses</Summary>
<BuildType>_emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">ncurses</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2014-09-14</Date>
<Version>5.9</Version>
<Comment>Fix build .pc files.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-05-11</Date>
<Version>5.9</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-08-31</Date>
<Version>5.9</Version>
<Comment>Rebuild.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-08-27</Date>
<Version>5.9_20121110</Version>
<Comment>Clean ncurses</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-14</Date>
<Version>5.9_20121110</Version>
<Comment>First release</Comment>
<Name>Erdinç Gültekin</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>ncurses</Name>
<Summary xml:lang="tr">Konsol görsel kütüphanesi</Summary>
<Description xml:lang="tr">NCurses, bir uygulamanın karakter tabanlı uçbirimlerde görüntüleri üzerinde çalışabilmeyi sağlayan işlevler kütüphanesidir. Uygulama programları için imleci hareket ettirmek, pencereler oluşturmak, renkler üretmek, fare ile oynamak v.b. işlevler sağlamaktadır.</Description>
<Description xml:lang="fr">NCurses est une librairie de fonction gérant l'affichage des applications pour terminaux en mode caractères. La libraries NCurses défini de nombreuses fonctionalités telles le mouvement de la souris et du curseur, la disposition du clavier et l'affichage en couleur.</Description>
</Source>
<Package>
<Name>ncurses-devel</Name>
<Summary xml:lang="tr">ncurses için geliştirme dosyaları</Summary>
</Package>
</PISI>