← Back to team overview

myunity team mailing list archive

[Merge] lp:~warp10/myunity/makefile into lp:myunity

 

Andrea Colangelo has proposed merging lp:~warp10/myunity/makefile into lp:myunity.

Requested reviews:
  MyUnity team (myunity)

For more details, see:
https://code.launchpad.net/~warp10/myunity/makefile/+merge/82619

MyUnity misses a tool to compile the source code into an executable.

This patch adds a Makefile to allow one to compile myunity and install it (by default in /usr/local/, but $PREFIX is available to override it). Executable is renamed "myunity", so I modified myunity.desktop accordingly.
-- 
https://code.launchpad.net/~warp10/myunity/makefile/+merge/82619
Your team MyUnity team is requested to review the proposed merge of lp:~warp10/myunity/makefile into lp:myunity.
=== added file 'INSTALL.rst'
--- INSTALL.rst	1970-01-01 00:00:00 +0000
+++ INSTALL.rst	2011-11-17 23:56:48 +0000
@@ -0,0 +1,47 @@
+========================================
+MyUnity - A tool to configure your Unity
+========================================
+
+DEBIAN PACKAGES
+----------------
+
+If you wish to install MyUnity on Ubuntu, please consider using the PPA the MyUnity Team has provided. Please refer to:
+
+``https://launchpad.net/~myunity/+archive/ppa``
+
+for more info about how to add the PPA to your system. Once done, you can install MyUnity with this command:
+
+``sudo apt-get install myunity``
+
+
+PREREQUISITES
+-------------
+
+MyUnity is written in Gambas, so you need the Gambas compiler to compile it. On a Debian or Debian-derived system, the following command will install everything you need to compile MyUnity:
+
+``apt-get install gambas2-dev gambas2-gb-gtk gambas2-gb-form gambas2-gb-gtk-ext``
+
+COMPILATION
+-----------
+
+Simply type:
+
+``make``
+
+to compile MyUnity. Configuration step is not needed before compiling.
+
+
+INSTALLATION
+------------
+
+After compilation, you can run the command:
+
+``myunity``
+
+to start the program.
+If you wish to install the program in a system-wide directory, run:
+
+``make install``
+
+This will install in /usr/local by default. You can override the installation directory setting the $PREFIX variabile before launching make install.
+

=== added file 'Makefile'
--- Makefile	1970-01-01 00:00:00 +0000
+++ Makefile	2011-11-17 23:56:48 +0000
@@ -0,0 +1,31 @@
+# Copyright © 2011 Fabio Colinelli
+# Copyright © 2011 Davide Pedrelli
+#
+# This program IS free software; you can redistribute it AND / OR modify
+# it under the terms OF the GNU General PUBLIC License AS published by
+# the Free Software Foundation; version 3 OF the License.
+#
+# This program IS distributed IN the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.See the
+# GNU General PUBLIC License FOR more details.
+#
+# You should have received a COPY OF the GNU General PUBLIC License
+#
+# along WITH this program; IF NOT, WRITE TO the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110 - 1301, USA.
+
+PREFIX ?= /usr/local
+
+build:
+	gbc2 -a -t -p .
+	gba2 .
+	mv myunity*.gambas myunity
+
+install: build
+	install -m 755 myunity $(PREFIX)/bin/
+	install -m 644 myunity.png $(PREFIX)/share/pixmaps/
+	install -m 644 myunity.desktop $(PREFIX)/share/applications/
+
+clean:
+	rm -f myunity

=== modified file 'myunity.desktop'
--- myunity.desktop	2011-11-16 17:49:08 +0000
+++ myunity.desktop	2011-11-17 23:56:48 +0000
@@ -2,7 +2,7 @@
 Version=1.0
 Name=MyUnity
 Comment=Configuratore per Unity
-Exec=/usr/bin/myunity.gambas
+Exec=/usr/bin/myunity
 Icon=/usr/share/pixmaps/myunity.png
 Terminal=false
 Type=Application


Follow ups