MyPaint is a free software graphics application for digital painters, its close to Corel Painter.
home page
http://mypaint.intilinux.com/
downloads page
http://mypaint.intilinux.com/?page_id=6
I think it's a pretty cool program ^__^
Dani745 wrote:MyPaint is a free software graphics application for digital painters, its close to Corel Painter.
home page
http://mypaint.intilinux.com/
downloads page
http://mypaint.intilinux.com/?page_id=6
I think it's a pretty cool program ^__^
pkgname=pygtk
pkgver=2.22.0
pkgrel=1em
source=("http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.22/$pkgname-$pkgver.tar.bz2")
docs=('AUTHORS' 'COPYING' 'Changelog' 'INSTALL' 'MAPPING' 'NEWS' 'README' 'THREADS' 'TODO')
url=http://www.pygtk.org/
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"pygtk (GTK+ bindings for Python)"
"PyGTK provides a convenient wrapper for the GTK+ library for use in"
"Python programs, taking care of many of the boring details such as"
"managing memory and type casting."
)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--enable-numpy \
--build=$ARCH-slackware-linux
make $NUMJOBS || return 1
make install DESTDIR=$startdir/pkg || return 1
}
pkgname=swig
pkgver=2.0.4
pkgrel=1em
source=("http://prdownloads.sourceforge.net/swig/$pkgname-$pkgver.tar.gz")
docs=('ANNOUNCE' 'CHANGES' 'CHANGES.current' 'COPYRIGHT' 'INSTALL' 'LICENSE' 'LICENSE-GPL' 'LICENSE-UNIVERSITIES' 'README' 'RELEASENOTES' 'TODO')
url=http://www.swig.org/
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"swig (Simplified Wrapper and Interface Generator)"
"SWIG is an interface compiler that connects programs written in C and"
"C++ with scripting languages such as Perl, Python, Ruby, and Tcl. It"
"works by taking the declarations found in C/C++ header files and using"
"them to generate the wrapper code that scripting languages need to"
"access the underlying C/C++ code. In addition, SWIG provides a"
"variety of customization features that let you tailor the wrapping"
"process to suit your application."
)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--docdir=/usr/doc/$pkgname-$pkgver
make $NUMJOBS || return 1
make install DESTDIR=$startdir/pkg || return 1
}
#make depend: scons, swig
#depend: pygtk with numpy support, python, numpy
pkgname=mypaint
pkgver=1.0.0
pkgrel=1em
source=("http://download.gna.org/mypaint/$pkgname-$pkgver.tar.bz2")
docs=('COPYING' 'LICENSE' 'README' 'changelog')
url=http://mypaint.intilinux.com/
doinst() {
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database /usr/share/applications 1> /dev/null 2> /dev/null
fi
if [ -x /usr/bin/update-mime-database -a -d /usr/share/mime ]; then
/usr/bin/update-mime-database /usr/share/mime 1> /dev/null 2> /dev/null &
fi
}
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mypaint is a free software graphics application for digital painters."
"MyPaint is a fast and easy open-source graphics application for"
"digital painters. MyPaint comes with a large brush collection"
"including charcoal and ink to emulate real media, but the highly"
"configurable brush engine allows you to experiment with your own"
"brushes and with not-quite-natural painting."
)
STARTDIR=/$startdir/pkg
build() {
cd $startdir/src/$pkgname-$pkgver
sed -i "s|lib/mypaint|lib${LIBDIRSUFFIX}/mypaint|g" SConstruct mypaint.py
scons
scons prefix=$startdir/pkg/usr install
}
linuxdoc-tools|python,numpy,pycairo,pygobject,pygtk,python,scons,swig
coroner wrote:depfinder can`t find correct dependencies. Scons and swig added manually.
Shador wrote:coroner wrote:depfinder can`t find correct dependencies. Scons and swig added manually.
Yes, it can. Scons and swig are usually build time deps. I'm fairly sure the package runs without. Anyway if packaging and using depfinder you should know it's limitation. It's technically impossible to detect all sorts of dependencies, so it's possible depfinder misses some. But it does a good job. Additionally you should have a look at runtime vs buildtime dependencies. In Slackware it's not common practice to list those (you can add a comment somewhere in the beginning of the SLKBUILD if you want) but e.g. Arch PKBUILDs and many other build systems do.
Anyway, thanks for your contribution.
tsuren wrote:This is a cool application! Thanks for sharing!
Without numpy compilation is not possible, and will not work too.Maybe by installing the numpy package? I
Since swig version 1.3.39 work well, checked 1.3.39 and 1.3.40. First time used last stable version 2.0.4.I also don't think it's possible to upgrade swig. Quite a big version leap.
[zhenya /]$: mypaint
builtin python 2.6 json support
confpath = /home/zhenya/.mypaint/
Traceback (most recent call last):
File "/usr/bin/mypaint", line 176, in <module>
main.main(datapath, extradata, confpath)
File "/usr/share/mypaint/gui/main.py", line 72, in main
run()
File "/usr/share/mypaint/gui/main.py", line 47, in run
app = application.Application(datadir, extradata, options.config, args)
File "/usr/share/mypaint/gui/application.py", line 86, in __init__
self.doc = document.Document(self)
File "/usr/share/mypaint/gui/document.py", line 38, in __init__
self.tdw.neutral_background_pixbuf = backgroundsurface.Background(pixbuf)
File "/usr/share/mypaint/lib/backgroundsurface.py", line 22, in __init__
obj = helpers.gdkpixbuf2numpy(obj)
File "/usr/share/mypaint/lib/helpers.py", line 113, in gdkpixbuf2numpy
arr = pixbuf.get_pixels_array()
RuntimeError: pygtk was not compiled with Numeric Python supportcoroner wrote:Maybe in the next release Patrick and co will make pygtk with the required dependencies.