MyPaint

If there's software you need and you can't find, make a request for it.
User avatar
Dani745
Posts: 17
Joined: 6. Sep 2011, 18:35
Location: Milky Way

MyPaint

Post by Dani745 »

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 ^__^
coroner
Donor
Posts: 29
Joined: 12. Nov 2011, 16:59
Contact:

Re: MyPaint

Post by coroner »

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 ^__^
Hi everyone. Maybe, some people what compile this interesting 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
}
swig SLKBUILD

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
}
mypaint SLKBUILD

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
}
depfinder mypaint

Code: Select all

linuxdoc-tools|python,numpy,pycairo,pygobject,pygtk,python,scons,swig
p.s. depfinder can`t find correct dependencies. Scons and swig added manually.
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.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: MyPaint

Post by Shador »

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.
Image
coroner
Donor
Posts: 29
Joined: 12. Nov 2011, 16:59
Contact:

Re: MyPaint

Post by coroner »

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.
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.

p.s. Sorry for my weak knowledge english. I understand well, but i don't remember grammar, becouse few use in my life.
User avatar
tsuren
Posts: 206
Joined: 7. Jun 2009, 17:32
Location: France

Re: MyPaint

Post by tsuren »

This is a cool application! Thanks for sharing!
'Tommorow is like today, just happens tomorrow.'
coroner
Donor
Posts: 29
Joined: 12. Nov 2011, 16:59
Contact:

Re: MyPaint

Post by coroner »

tsuren wrote:This is a cool application! Thanks for sharing!
Can I expect that somebody from maintainers or developers shall make packages and add to the repository?
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: MyPaint

Post by Shador »

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.
Image
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: MyPaint

Post by gapan »

Yes, rebuilding pygtk is a major problem. It simply isn't an option.
Image
Image
coroner
Donor
Posts: 29
Joined: 12. Nov 2011, 16:59
Contact:

Re: MyPaint

Post by coroner »

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.
Maybe by installing the numpy package? I
Without numpy compilation is not possible, and will not work too.
I also don't think it's possible to upgrade swig. Quite a big version leap.
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.

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
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.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: MyPaint

Post by gapan »

coroner wrote:Maybe in the next release Patrick and co will make pygtk with the required dependencies. :)
I wouldn't count on it.
Image
Image
Post Reply