aboutsummaryrefslogtreecommitdiff
path: root/dev/python/numpy/numpy.mkbuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev/python/numpy/numpy.mkbuild')
-rw-r--r--dev/python/numpy/numpy.mkbuild149
1 files changed, 116 insertions, 33 deletions
diff --git a/dev/python/numpy/numpy.mkbuild b/dev/python/numpy/numpy.mkbuild
index b8e6c0c..129eb22 100644
--- a/dev/python/numpy/numpy.mkbuild
+++ b/dev/python/numpy/numpy.mkbuild
@@ -1,25 +1,16 @@
-#
-# This mkbuild 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; either version 2 of the License, or any later version.
-#
-# This mkbuild 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., 59 Temple
-# Place - Suite 330, Boston, MA 02111-1307, USA
-#
-
+#################################################################
+## Generic template for Mkbuild
+##
+## Version 0.9.0 - Alves ( rudsonalves at yahoo d0t com d0t br )
+#################################################################
#--------------------
# Personal variables
#--------------------
# Author name
-[[SLACKBUILD AUTHOR]]="Silvio Rhatto"
+[[SLACKBUILD AUTHOR]]="Rudson R. Alves"
# Initials author name
-[[SLACKBUILD AUTHOR INITIALS]]="rha"
+[[SLACKBUILD AUTHOR INITIALS]]="srv"
#------------------------
# Construction Variables
@@ -28,14 +19,99 @@
# Complete URL address or URL base address ( without $SRC_NAME-$VERSION... )
[[DOWNLOAD FOLDER URL]]="http://downloads.sourceforge.net/numpy/numpy-1.0.4.tar.gz"
-[[SLACK REQUIRED]]="python"
+# Source base name. if different from package name. Null ("") to default value.
+# Auto-set, get SRC_NAME from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[SOURCE NAME]]=""
-# SlackBuild PATH in Slack.Sarava tree
-[[SLACKBUILD PATH]]="dev/python/[[NAME]]"
+# Package name. Null ("") to auto-set
+# Auto-set, get PKG_NAME from URL downcase(SRC_NAME): http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[PACKAGE NAME]]=""
+
+#
+# Package default ARCH
+# Default set is i486
+[[ARCH]]=""
+
+#
+# Package version. Null ("") to auto-set.
+# Auto-set, get VERSION from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[VERSION]]=""
+
+#
+# Package extension. Null ("") to auto-set
+# Auto-set, get EXTENSION from URL: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[EXTENSION]]=""
+
+#
+# Build number.
+# Auto-set to default 1
+[[BUILD NUMBER]]=""
+
+#
+# Source Name construction string
+# Default value is: $SRC_NAME-$VERSION.tar.$EXTENSION
+[[SOURCE NAME CONSTRUCTION STRING]]="$SRC_NAME-$VERSION.tar.$EXTENSION"
+
+#
+# Unpacker programa ("") to auto-set. Default "tar"
+# Unpacke Flags ("") to auto-set. Default flags to tar "--no-same-owner --no-same-permissions -xvf"
+[[UNPACKER]]=""
+[[UNPACKER FLAGS]]=""
+
+#
+# Dependency list input
+# Enter string: "dependency_1 [condiction_1] [versio_1]: dependency_2 [condiction_2] [versio_2]"
+# Example:
+[[SLACK REQUIRED]]="python: lapack"
+
+#
+# Decompress program
+# gz, tgz, bz2, set null ("") to auto-set
+# Auto-set, get DECOMPRESSOR from URL EXTENSION: http://.../$SRC_NAME-$VERSION.tar.$EXTENSION'
+[[DECOMPRESSOR]]=""
+
+#
+# Decompress check flag
+# gz, tgz, bz2, set null ("") to auto-set
+[[DECOMPRESSOR TEST FLAG]]=""
-# Documentation files
+#
+# Documentation files. Null ("") to auto-set commom doc-files:
+# NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING readme.*
[[DOCUMENTATION FILES]]="COMPATIBILITY DEV_README.txt LICENSE.txt MANIFEST.in PKG-INFO README.txt THANKS.txt"
+#
+# ./configure options
+[[OTHER CONFIGURE ARGS]]=""
+
+#
+# PREFIX. Default /usr
+[[PREFIX]]="/usr"
+
+#
+# Number of jobs
+[[NUMBER OF JOBS]]="-j4"
+
+#---------------------
+# Others changes
+#---------------------
+#[[MD5SUM CODE]]=""
+#[[MD5SUM EXTENSION]]=""
+#[[SIGNING KEY]]=""
+#[[SIGNING KEY URL]]=""
+#[[SIGNING KEY ID]]=""
+#[[CONFIG FILES]]=""
+#[[PATCH URLS]]=""
+[[PATCH FILES]]=""
+[[NUMBER OF PREFIX SLASHES TO STRIP]]="1"
+
+# SlackBuild model
+[[SLACKBUILD MODEL]]="generic.mkSlackBuild"
+
+# SlackBuild PATH in Slack.Sarava tree
+#[[SLACKBUILD PATH]]="others/unclassified/numpy"
+[[SLACKBUILD PATH]]="dev/python/numpy"
+
#---------------------
# SlackBuild Sections
#---------------------
@@ -50,7 +126,9 @@
on: slkflags
on: error_codes
on: start_structure
+off: create_build_user_and_group
on: download_source
+off: svn_source
off: md5sum_download_and_check_0
off: md5sum_download_and_check_1
off: gpg_signature_check
@@ -58,12 +136,14 @@ off: gpg_signature_check
off: patch_source
off: configure
on: make_package
-off: install_package
+ on: install_package
on: strip_binaries
off: compress_manpages
off: compress_info_files
+off: copy_init_scripts
on: install_documentation
on: slackdesc
+off: move_config_files
off: postinstall_script
on: build_package
on: clean_builds
@@ -73,20 +153,23 @@ off: postinstall_script
# Sections changes
#------------------
#>slackdesc
-numpy: NumPy: array processing for numbers, strings, records, and objects.
+numpy: numpy by Slack.Sarava
+numpy:
+numpy: NumPy is a replacement of Numeric Python that adds the features
+numpy: of numarray.
+numpy:
+numpy:
+numpy:
+numpy:
numpy:
-numpy: NumPy is a general-purpose array-processing package designed to efficiently
-numpy: manipulate large multi-dimensional arrays of arbitrary records without
-numpy: sacrificing too much speed for small multi-dimensional arrays. NumPy is
-numpy: built on the Numeric code base and adds features introduced by numarray as
-numpy: well as an extended C-API and the ability to create arrays of arbitrary
-numpy: type which also makes NumPy suitable for interfacing with general-purpose
-numpy: data-base applications.
numpy:
numpy:
#<slackdesc
-#>make_package
-# Build and install package
-python setup.py build install --root=$PKG
-#<make_package
+#p>
+-make $NUMJOBS || exit $ERROR_MAKE
++python setup.py build || exit $ERROR_MAKE
+===
+-make install DESTDIR="$PKG" || exit $ERROR_INSTALL
++python setup.py install --prefix=$PKG/usr || exit $ERROR_INSTALL
+#p<