MyPaint
MyPaint
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 ^__^
home page
http://mypaint.intilinux.com/
downloads page
http://mypaint.intilinux.com/?page_id=6
I think it's a pretty cool program ^__^
Re: MyPaint
Hi everyone. Maybe, some people what compile this interesting 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 ^__^
1. Install Numpy.
2. Install Scons.
3. Rebuild pygtk with Numpy support.
4. Update swig. In 1.3.38 version error when starting program.
5. Compile from source mypaint-1.0.0.
6 ....
7 Profit.
pygtk SLKBUILD
Code: Select all
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
}
Code: Select all
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
}
Code: Select all
#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
}
Code: Select all
linuxdoc-tools|python,numpy,pycairo,pygobject,pygtk,python,scons,swig
p.p.s Not tested correct path to icons for mypaint.desktop.
Last edited by coroner on 15. Jan 2012, 03:42, edited 3 times in total.
Re: MyPaint
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.coroner wrote:depfinder can`t find correct dependencies. Scons and swig added manually.
Anyway, thanks for your contribution.
Re: MyPaint
Good morning. Thanks a lot for explanation. Add comments in mypaint slkbuild about dependencies. I knew what mypaint package run without scons and swig, but wrote in depfinder for successful compiling. If someone found errors in slkbuilds, wrote here. Check hicolor icons, correct or not add in desktop environment.Shador wrote: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.coroner wrote:depfinder can`t find correct dependencies. Scons and swig added manually.
Anyway, thanks for your contribution.
p.s. Sorry for my weak knowledge english. I understand well, but i don't remember grammar, becouse few use in my life.
Re: MyPaint
This is a cool application! Thanks for sharing!
'Tommorow is like today, just happens tomorrow.'
Re: MyPaint
Can I expect that somebody from maintainers or developers shall make packages and add to the repository?tsuren wrote:This is a cool application! Thanks for sharing!
Re: MyPaint
Do it yourself. There are instructions in the wiki and there are too few maintainers to maintain every possible program out there properly. So every contribution is welcome. It's usually better anyway if somebody actually using a package is maintaining it.
Here you go:
http://www.salixos.org/wiki/index.php/C ... :Packaging
Especially:
http://www.salixos.org/wiki/index.php/S ... repository
http://www.salixos.org/wiki/index.php/Packaging_rules
You're package would of course be thoroughly reviewed. The most striking problem are the rebuild of pygtk and the upgrade of swig. Is it possible to circumvent the rebuild somehow? Maybe by installing the numpy package? I also don't think it's possible to upgrade swig. Quite a big version leap. But that might not necessarily be needed as it's just a build-time dep.
With the next version of Salix it should be no problem to upgrade swig of course. But as pygtk is a Slackware package that makes that one somewhat more difficult.
Here you go:
http://www.salixos.org/wiki/index.php/C ... :Packaging
Especially:
http://www.salixos.org/wiki/index.php/S ... repository
http://www.salixos.org/wiki/index.php/Packaging_rules
You're package would of course be thoroughly reviewed. The most striking problem are the rebuild of pygtk and the upgrade of swig. Is it possible to circumvent the rebuild somehow? Maybe by installing the numpy package? I also don't think it's possible to upgrade swig. Quite a big version leap. But that might not necessarily be needed as it's just a build-time dep.
With the next version of Salix it should be no problem to upgrade swig of course. But as pygtk is a Slackware package that makes that one somewhat more difficult.
Re: MyPaint
Slkbuild for mypaint wrote just for practice. I do not use this program, but always dreamed learn how to draw well. Maybe in the near future I will try this program.
Use swig 1.3.39, Mypaint package rebuild with standard version pygtk from slackware.
Maybe in the next release Patrick and co will make pygtk with the required dependencies.
p.s. I ready maintain Dungeon Crawl Stone Soup (tiles version). If someone will request this game.
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.
Use swig 1.3.39, Mypaint package rebuild with standard version pygtk from slackware.
Code: Select all
[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 support
p.s. I ready maintain Dungeon Crawl Stone Soup (tiles version). If someone will request this game.
Re: MyPaint
I wouldn't count on it.coroner wrote:Maybe in the next release Patrick and co will make pygtk with the required dependencies.