From 092a60646625b17a95a51f57969bd1b26a38c4fb Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Fri, 5 Dec 2008 18:14:07 +0100 Subject: [PATCH] added dev-lang/nasm --- metadata/categories.conf | 1 + .../files/nasm-2.05.01-automagic-deps.patch | 21 +++++++++++++ packages/dev-lang/nasm/nasm-2.05.01.exheres-0 | 18 +++++++++++ .../dev-lang/nasm/nasm-2.06_rc1.exheres-0 | 18 +++++++++++ packages/dev-lang/nasm/nasm.exlib | 30 +++++++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 packages/dev-lang/nasm/files/nasm-2.05.01-automagic-deps.patch create mode 100644 packages/dev-lang/nasm/nasm-2.05.01.exheres-0 create mode 100644 packages/dev-lang/nasm/nasm-2.06_rc1.exheres-0 create mode 100644 packages/dev-lang/nasm/nasm.exlib diff --git a/metadata/categories.conf b/metadata/categories.conf index 3ffb5f5..7ddd49e 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -1,3 +1,4 @@ +dev-lang dev-libs sys-apps sys-libs diff --git a/packages/dev-lang/nasm/files/nasm-2.05.01-automagic-deps.patch b/packages/dev-lang/nasm/files/nasm-2.05.01-automagic-deps.patch new file mode 100644 index 0000000..f8ccbb5 --- /dev/null +++ b/packages/dev-lang/nasm/files/nasm-2.05.01-automagic-deps.patch @@ -0,0 +1,21 @@ +--- ./configure.in.orig 2008-12-05 17:57:11.000000000 +0100 ++++ ./configure.in 2008-12-05 17:57:05.000000000 +0100 +@@ -67,10 +67,14 @@ + PA_ADD_CFLAGS([-pedantic]) + + dnl Look for programs... +-AC_CHECK_PROGS(NROFF, nroff, echo) +-AC_CHECK_PROGS(ACRODIST, acrodist, false) +-AC_CHECK_PROGS(PS2PDF, ps2pdf, false) +-AC_CHECK_PROGS(PSTOPDF, pstopdf, false) ++AC_ARG_WITH([nroff], [AS_HELP_STRING([--with-nroff], [use nroff])]) ++test "$with_nroff" != no && AC_CHECK_PROGS(NROFF, nroff, echo) ++AC_ARG_WITH([acrodist], [AS_HELP_STRING([--with-acrodist], [use acrodist])]) ++test "$with_acrodist" != no && AC_CHECK_PROGS(ACRODIST, acrodist, false) ++AC_ARG_WITH([ps2pdf], [AS_HELP_STRING([--with-ps2pdf], [use ps2pdf])]) ++test "$with_ps2pdf" != no && AC_CHECK_PROGS(PS2PDF, ps2pdf, false) ++AC_ARG_WITH([pstopdf], [AS_HELP_STRING([--with-pstopdf], [use pstopdf])]) ++test "$with_pstopdf" != no && AC_CHECK_PROGS(PSTOPDF, pstopdf, false) + + dnl Checks for header files. + AC_HEADER_STDC diff --git a/packages/dev-lang/nasm/nasm-2.05.01.exheres-0 b/packages/dev-lang/nasm/nasm-2.05.01.exheres-0 new file mode 100644 index 0000000..57e45f5 --- /dev/null +++ b/packages/dev-lang/nasm/nasm-2.05.01.exheres-0 @@ -0,0 +1,18 @@ + +SUPPORTED_AUTOCONF=( 2.5 ) +SUPPORTED_AUTOMAKE=( 1.10 ) + +require "${PN}" autotools + +DEFAULT_SRC_PREPARE_PATCHES+=( + "${FILES}/${PNV}-automagic-deps.patch" +) + +DEFAULT_SRC_CONFIGURE_PARAMS+=( + --without-acrodist + --without-ps2pdf + --without-pstopdf +) + +SLOT="0" +PLATFORMS="~amd64" diff --git a/packages/dev-lang/nasm/nasm-2.06_rc1.exheres-0 b/packages/dev-lang/nasm/nasm-2.06_rc1.exheres-0 new file mode 100644 index 0000000..57f5d73 --- /dev/null +++ b/packages/dev-lang/nasm/nasm-2.06_rc1.exheres-0 @@ -0,0 +1,18 @@ + +SUPPORTED_AUTOCONF=( 2.5 ) +SUPPORTED_AUTOMAKE=( 1.10 ) + +require "${PN}" autotools + +DEFAULT_SRC_PREPARE_PATCHES+=( + "${FILES}/${PN}-2.05.01-automagic-deps.patch" +) + +DEFAULT_SRC_CONFIGURE_PARAMS+=( + --without-acrodist + --without-ps2pdf + --without-pstopdf +) + +SLOT="0" +PLATFORMS="~amd64" diff --git a/packages/dev-lang/nasm/nasm.exlib b/packages/dev-lang/nasm/nasm.exlib new file mode 100644 index 0000000..149030f --- /dev/null +++ b/packages/dev-lang/nasm/nasm.exlib @@ -0,0 +1,30 @@ +MYPV="${PV/_rc/rc}" +MYPNV="${PNV/_rc/rc}" + +SUMMARY="An 80x86 and x86-64 assembler designed for portability and modularity." +DESCRIPTION=" + It supports a range of object file formats, including Linux and *BSD a.out, + ELF, COFF, Mach-O, Microsoft 16-bit OBJ, Win32 and Win64. It will also + output plain binary files. Its syntax is designed to be simple and easy to + understand, similar to Intel's but less complex +" +HOMEPAGE="http://www.${PN}.us/" +DOWNLOADS=" + ${HOMEPAGE}/pub/${PN}/releasebuilds/${MYPV}/${MYPNV}.tar.bz2 + mirror://sourceforge/${PN}/${MYPNV}.tar.bz2 +" + +LICENCES="" +MYOPTIONS="" + +DEPENDENCIES="" + +REMOTE_IDS="freshmeat:NASM - The Netwide Assembler" + +UPSTREAM_DOCUMENTATION="${HOMEPAGE}/doc/" + +DEFAULT_SRC_INSTALL_PARAMS+=( + INSTALLROOT="${IMAGE}" +) + +WORK="${WORKBASE}/${MYPNV}"