You are not logged in.

#1 2009-01-10 20:52:52

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

[Request] Magic Set Editor

Could someone please make a package of Magic Set Editor (Latest version, not the one that is says 0.3.6).
The source for the latest version can be obtained via:

svn co https://magicseteditor.svn.sourceforge.net/svnroot/magicseteditor/trunk magicseteditor

For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#2 2009-01-10 23:55:51

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] Magic Set Editor

Sorry, this is a windows program. The sources are for Microsoft Visual Studio, and there are absolutely no build instructions for other compilers.

Offline

#3 2009-01-11 00:01:39

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

I think you're wrong. I've downloaded the latest svn version and when running configure, I get this:

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for Hunspell_create in -lhunspell... no
checking for boostlib >= 1.37.0... configure: error: We could not detect the boost libraries (version 1.37 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.

It seems to be able to build on Linux. It just needs a later version of boost than what's in the repos. I think I have a finished PKGBUILD but I can't be sure until I get access to the latest boost.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2009-01-11 00:29:19

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

Okay. I hope we get a boostlib upgrade.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#5 2009-01-11 01:12:34

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

Here's the PKGBUILD. Test it once you can get boost>=1.37. The pkgbuild contains a function that I've written (explained here) to maintain the latest svn source without unnecessary versioning info. Keep the build directory if you want to update to the latest version regularly so that you don't have to download all of the source files each time you build.

# Contributor: Xyne <xyne at archlinux dot us>

pkgname=mse-svn
# this gets changed automatically to the svn revision number
pkgver=1
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Magic Set Editor, a program to edit your  own Magic cards"
url="http://magicseteditor.sourceforge.net/"
license="gpl"
makedepends=('subversion' 'boost' 'wxgtk')
source=()

build() {
  _msedir="$srcdir/$pkgname"
  _msesvn='https://magicseteditor.svn.sourceforge.net/svnroot/magicseteditor/trunk'


    svn_export $_msesvn $_msedir
  cd $_msedir
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir/" install
}


svn_export() {
  _svn=$1
  _dir=$2
  echo "checking $_dir..."
    _revisionfile="$srcdir/$(basename $_dir).txt"
    _action="build"

  if [ -e "$_revisionfile" ]; then
    _localrevision=$(head -n1 $_revisionfile)
    echo "local revision is $_localrevision"
    echo "checking $_svn..."
    _latestrevision=$(svn info $_svn | grep Revision | cut -d ' ' -f2)
    echo "latest revision is $_latestrevision"

    if [ "$_localrevision" != "$_latestrevision" ]; then
      exec <<DIFF
$(svn diff -r $_localrevision:$_latestrevision --summarize $_svn)
DIFF
      while read _line
      do
        #echo "$_line"
        _line=$(echo "$_line" | sed 's/  */ /g')
        _change=$(echo "$_line" | cut -d ' ' -f1)
        _file=$(echo "$_line" | cut -d ' ' -f2)
        _localfile="$_dir${_file:${#_svn}}"

        if [ "$_change" == "D" ] && [ -e "$_localfile" ]; then
          echo "removing $_localfile"
          rm $_localfile
        else
          _targetdir=$(dirname $_localfile)
          if [ ! -e "$_targetdir" ]; then
            echo "creating $_targetdir"
            mkdir -p $_targetdir
          fi
          #echo "exporting $_file"
          svn export --force $_file $_localfile
        fi
      done
    else
      echo "no changes have been made"
      _action="nobuild"
    fi
  else
    echo "exporting everything"
    svn export --force $_svn $_dir
  fi

  echo "$_latestrevision" >$_revisionfile
  pkgver="$_latestrevision"
}

Last edited by Xyne (2009-01-12 01:47:36)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2009-01-11 01:56:17

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

Okay and thanks!


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#7 2009-01-11 05:10:12

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] Magic Set Editor

Weird, I did not get any configure-script. So obviously my svn command was wrong, sorry.

Offline

#8 2009-01-11 05:19:00

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

It's okay, that happens.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#9 2009-01-11 12:05:55

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

Ok, here's a PKGBUILD for boost-svn based on the one in ABS. I've pulled the sources and it's building here, but it's taking ages and I don't know if I have the time to wait and test it. It should be fine. The patch applied in the official Arch package appears to have been included upstream so I've commented those lines in the PKGBUILD.

Build it, install it, then try to build the mse package and see what happens.

# Contributor: Xyne

# Data from original ABS PKGBUILD:
## $Id: PKGBUILD 14062 2008-10-03 02:57:40Z eric $
## Maintainer: kevin <kevin@archlinux.org>
## TU: Kritoke <kritoke@gamebox.net>
## Contributor: Luca Roccia <little_rock@users.sourceforge.net>
 
pkgname=boost-svn
pkgver=1
#_boostver=1_36_0
pkgrel=1
pkgdesc="Boost provides free peer-reviewed portable C++ source libraries."
arch=(i686 x86_64)
url="http://www.boost.org/"
depends=('python>=2.5' 'bzip2' 'zlib')
provides=('boost')
conflicts=('boost')
makedepends=('subversion')
license=('custom')
#source=(0001-date_time-gcc-4.3-fix.patch)
source=()
#md5sums=('d7f821056540ef08eb1d5ebd5ed017f1')
md5sums=()
 
build() {
  _boostdir="$srcdir/trunk"
  _boostsvn="http://svn.boost.org/svn/boost/trunk"
  svn_export $_boostsvn $_boostdir
  cd $_boostdir
  export CFLAGS="${CFLAGS} -fno-strict-aliasing"
  #patch -Np1 -i ${srcdir}/0001-date_time-gcc-4.3-fix.patch

  # build bjam
  cd ${_boostdir}/tools/jam/src
  ./build.sh cc || return 1

  _bindir="bin.linuxx86"
  [ "${CARCH}" = "x86_64" ] && _bindir="bin.linuxx86_64"

  install -m755 -d ${pkgdir}/usr/bin
  install -m755 ${_bindir}/bjam ${pkgdir}/usr/bin/bjam || return 1
 
  # build bcp
  cd ${_boostdir}/tools/bcp
  ../jam/src/${_bindir}/bjam || return 1
  install -m755 ${_boostdir}/dist/bin/bcp \
                ${pkgdir}/usr/bin/bcp || return 1

  # build libs
  cd ${_boostdir}
  # default "debug release <runtime-link>static/dynamic <threading>single/multi"
  # --layout=system removes the -gcc suffix from libraries and installs
  # includes in /usr/include/boost.
  ./tools/jam/src/${_bindir}/bjam \
            release debug-symbols=off threading=single,multi \
            runtime-link=shared link=shared,static \
            --prefix=${pkgdir}/usr \
            -sPYTHON_ROOT=/usr \
            -sPYTHON_VERSION=2.5 \
            -sTOOLS=gcc \
            --layout=system \
            install || return 1

  # build pyste
  cd ${_boostdir}/libs/python/pyste/install
  python setup.py install --root=${pkgdir} || return 1

  # license
  install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
  install -m644 ${_boostdir}/LICENSE_1_0.txt \
                ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}

svn_export() {
  _svn=$1
  _dir=$2
  echo "checking $_dir..."
    _revisionfile="$srcdir/$(basename $_dir).txt"
    _action="build"

  if [ -e "$_revisionfile" ]; then
    _localrevision=$(head -n1 $_revisionfile)
    echo "local revision is $_localrevision"
    echo "checking $_svn..."
    _latestrevision=$(svn info $_svn | grep Revision | cut -d ' ' -f2)
    echo "latest revision is $_latestrevision"

    if [ "$_localrevision" != "$_latestrevision" ]; then
      exec <<DIFF
$(svn diff -r $_localrevision:$_latestrevision --summarize $_svn)
DIFF
      while read _line
      do
        #echo "$_line"
        _line=$(echo "$_line" | sed 's/  */ /g')
        _change=$(echo "$_line" | cut -d ' ' -f1)
        _file=$(echo "$_line" | cut -d ' ' -f2)
        _localfile="$_dir${_file:${#_svn}}"

        if [ "$_change" == "D" ] && [ -e "$_localfile" ]; then
          echo "removing $_localfile"
          rm $_localfile
        else
          _targetdir=$(dirname $_localfile)
          if [ ! -e "$_targetdir" ]; then
            echo "creating $_targetdir"
            mkdir -p $_targetdir
          fi
          #echo "exporting $_file"
          svn export --force $_file $_localfile &
        fi
      done
    else
      echo "no changes have been made"
      _action="nobuild"
    fi
  else
    echo "exporting everything"
    svn export --force $_svn $_dir
  fi

  wait
  echo "$_latestrevision" >$_revisionfile
  pkgver="$_latestrevision"
}

Last edited by Xyne (2009-01-11 12:08:33)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2009-01-11 12:29:41

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

The boost-svn PKGBUILD works. With it installed, the mse-svn configure script reports

checking for boostlib >= 1.37.0... yes
checking whether the Boost::Regex library is available... yes

and completes successfully. Make fails with

make: *** No rule to make target `Makefile.am', needed by `Makefile.in'.  Stop.

I don't know how to fix that but someone else will (if it's fixable). If I figure it out, I'll post an updated PKGBUILD.

Last edited by Xyne (2009-01-11 12:47:11)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2009-01-11 12:37:17

droog
Member
Registered: 2004-11-18
Posts: 877

Re: [Request] Magic Set Editor

I didn't download the source but from what i read it looked like "maybe" it would work on the command line in linux.
It would be difficult to catalog your cards without a gui to see them if this is the case but i guess might be useful to someone somehow tongue
especially since there are a few nice gtk programs already that do this.

If i'm wrong let me know but this looks like a windows only program for any usefulness.

Offline

#12 2009-01-11 15:06:16

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

No, there is a Linux version. I've used it on PCLOS before. And it also makes cards, not just categorizes them (of course making them is for fun).

And Xyne, you also need wxGTK 2.8 for Magic Set Editor. (Not sure if it's with the make, but I know the gui doesn't run w/o it).

Last edited by ShadowKyogre (2009-01-11 15:16:33)


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#13 2009-01-11 17:09:13

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

@ShadowKyogre
Ok, I'll edit my post. It's just a matter of adding "wxGTK" to the depends array.

I don't know if boost is a true dependency or just a build dependency btw. If anyone knows, post the answer here.

Last edited by Xyne (2009-01-11 17:11:27)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#14 2009-01-11 17:38:31

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

I think it's a build dependency.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#15 2009-01-11 18:09:31

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

I've removed it from the PKGBUILD above for now. I'll edit it again if someone can confirm that it is a build dep.

Have you tried to build it yet btw? Did you get the same error?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#16 2009-01-11 19:05:23

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

I'm first getting boost. I'll then test the mse-svn PKGBUILD.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#17 2009-01-12 01:43:51

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

wxGTK 2.8 is a make dependency. I'm still getting the same error though.

Last edited by ShadowKyogre (2009-01-12 01:50:12)


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#18 2009-01-12 01:47:53

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

ok, updated the PKGBUILD


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#19 2009-01-12 02:01:10

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

Okay. Apparently, Makefile.am doesn't exist in the directory after configuration.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#20 2009-01-12 02:39:06

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

Yeah, that's as far as I got. Running one of the scripts in the directory generates a "Makefile.am", but then it goes back to complaining about boost. Something tells me this shouldn't be too difficult to fix, but I'm still a noob when it comes to makefiles.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#21 2009-01-12 02:42:46

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

Which script?


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#22 2009-01-12 02:50:48

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Request] Magic Set Editor

I don't remember now (and I left the sources in tmp so I don't have them now). I was *.sh, and the first letter was between a and m I think (it was to the left of the Makefile when listing the directory.

Try "grep -lir makefile.am" and see what comes up.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#23 2009-01-12 02:56:05

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

I got two lines of nothing.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#24 2009-01-13 21:53:53

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Request] Magic Set Editor

I tried do add

./MakeAM.sh || return 1
 sed -i 's+AX_BOOST_BASE\(1.37.0\)++' configure || return 1

before the configure line in Xynes PKGBUILD of mse-svn. This generates a file Makefile.am (first line). The second line strips the test for the boost version, which fails otherwise.

But now I get

    g++ -DHAVE_CONFIG_H -I. -I./src    -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DUNICODE -I . -Wall -g -MT src/script/functions/basic.o -MD -MP -MF $depbase.Tpo -c -o src/script/functions/basic.o src/script/functions/basic.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
src/script/functions/basic.cpp: In function 'String format_input(const String&, const ScriptValue&)':
src/script/functions/basic.cpp:66: error: call of overloaded 'wxDateTime(const ScriptValue&)' is ambiguous
/usr/include/wx-2.8/wx/datetime.h:1664: note: candidates are: wxDateTime::wxDateTime(short unsigned int, short unsigned int, short unsigned int, short unsigned int)
/usr/include/wx-2.8/wx/datetime.h:1648: note:                 wxDateTime::wxDateTime(double)
/usr/include/wx-2.8/wx/datetime.h:1632: note:                 wxDateTime::wxDateTime(time_t)
/usr/include/wx-2.8/wx/datetime.h:141: note:                 wxDateTime::wxDateTime(const wxDateTime&)
make: *** [src/script/functions/basic.o] Error 1
==> ERROR: Build Failed.
    Aborting...

Offline

#25 2009-01-14 01:22:58

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: [Request] Magic Set Editor

I get this:
./configure: line 4017: syntax error near unexpected token `1.37.0'
./configure: line 4017: `AX_BOOST_BASE(1.37.0)'


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

Board footer

Powered by FluxBB