From d9733338c098d1f5920ef3df420876abdeef5292 Mon Sep 17 00:00:00 2001 From: Thomas Beierlein Date: Sun, 8 Jun 2008 14:22:45 +0000 Subject: media-radio/unixcw: Modified to to repsect use flag settings. svn path=/sunrise/; revision=6277 --- media-radio/unixcw/ChangeLog | 4 ++ media-radio/unixcw/Manifest | 5 ++- media-radio/unixcw/files/unixcw-2.3-config.patch | 54 ++++++++++++++++++++++++ media-radio/unixcw/unixcw-2.3-r1.ebuild | 37 ++++++++++++++++ media-radio/unixcw/unixcw-2.3.ebuild | 27 ------------ 5 files changed, 98 insertions(+), 29 deletions(-) create mode 100644 media-radio/unixcw/files/unixcw-2.3-config.patch create mode 100644 media-radio/unixcw/unixcw-2.3-r1.ebuild delete mode 100644 media-radio/unixcw/unixcw-2.3.ebuild diff --git a/media-radio/unixcw/ChangeLog b/media-radio/unixcw/ChangeLog index e244052a1..e625c514a 100644 --- a/media-radio/unixcw/ChangeLog +++ b/media-radio/unixcw/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 08 Jun 2008; Thomas Beierlein (TomJBE) + -unixcw-2.3.ebuild, +unixcw-2.3-r1.ebuild, +files/unixcw-2.3-config.patch: + Modified to to repsect use flag settings. + 02 May 2008; Thomas Beierlein (TomJBE) +unixcw-2.3.ebuild, +files/unixcw-2.3-destdir.patch, +metadata.xml: New Ebuild for bug 220027 diff --git a/media-radio/unixcw/Manifest b/media-radio/unixcw/Manifest index dc07ba30f..50d51e925 100644 --- a/media-radio/unixcw/Manifest +++ b/media-radio/unixcw/Manifest @@ -1,5 +1,6 @@ +AUX unixcw-2.3-config.patch 1651 RMD160 fc7d2be6f85f60bb841a2c703d303c293af3e6a0 SHA1 69bdd9a053828c8f9548ab73279fd0919445cb7d SHA256 99b79225693636327841948408cc5b7289a39c5ca89bc26c55a08743eb42c8cb AUX unixcw-2.3-destdir.patch 420 RMD160 e51ea34244dca4a8fb62d87cd2186280e7ad2263 SHA1 4ef438bf681d5ef31c47113b7eb0227db6a5dc02 SHA256 beb45ffca273ec6ee55484234a808fde7973643de8bd943fd2db6eac45d14bf0 DIST unixcw-2.3.tgz 202048 RMD160 1ba7944d7a7fc92adf7ed1a83d706546e9eaa8be SHA1 2aece1e4b0660618537a94561344dd97026b7924 SHA256 124c60c6c7ef596a7c96c94a0e76204c7d986373564121155f0f206ad71f30a0 -EBUILD unixcw-2.3.ebuild 595 RMD160 2a9c165a7dd8b9ccd5c54d28fda4b5396ed47b45 SHA1 fb64d994b31a4b33a3f0b6affd0ba73a5dad0754 SHA256 cc124a86a12da1c7370aa24e713c4944a1b1edcf570002ddb2e5f57e4681d3cd -MISC ChangeLog 305 RMD160 96176ea081678c1f5fda6a4f4c2833edbe4cad8a SHA1 dbaaafe817b5fbb50dfe8474456b0a36a5c28160 SHA256 c14454aabca98fead17afc5e56105c7a7b115d1de23b969e68262ed8cecd3b2a +EBUILD unixcw-2.3-r1.ebuild 841 RMD160 b8ac12adea0589b32615fb48dade04792458c8cc SHA1 20fddc3dee5437325710a1651c2b643ead6a4bdd SHA256 667851f4bf5725d278c3ef653eca91c7c243a02092c391058a2c9887d8cab0fe +MISC ChangeLog 485 RMD160 c03228aebae1e183469b27cb72783eaa505974ba SHA1 2801c8a8fe103e52f5ad98ef95c0dcbb12244a5f SHA256 964179ed3a38d05311f72d43a9f31a96462eaaf0112de17c807d3fde6ccc410e MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/media-radio/unixcw/files/unixcw-2.3-config.patch b/media-radio/unixcw/files/unixcw-2.3-config.patch new file mode 100644 index 000000000..acd447bfe --- /dev/null +++ b/media-radio/unixcw/files/unixcw-2.3-config.patch @@ -0,0 +1,54 @@ +--- configure.ac.orig 2006-07-13 07:31:21.000000000 +0200 ++++ configure.ac 2008-06-08 14:30:41.000000000 +0200 +@@ -46,8 +46,24 @@ + AC_SUBST(GZIP) + AC_SUBST(LDCONFIG) + ++AC_MSG_CHECKING(--enable-ncurses argument) ++AC_ARG_ENABLE(ncurses, ++ [ --enable-ncurses Include curses based Morse code Tutor], ++ [enable_ncurses=$enableval], ++ [enable_ncurses="no"]) ++AC_MSG_RESULT($enable_ncurses) ++ ++AC_MSG_CHECKING(--enable-qt3 argument) ++AC_ARG_ENABLE(qt3, ++ [ --enable-qt3 Include QT based Morse code Tutor], ++ [enable_qt=$enableval], ++ [enable_qt="no"]) ++AC_MSG_RESULT($enable_qt) ++ ++if test "$enable_ncurses" = 'yes'; then + # Checks for libraries. + AC_CHECK_LIB(curses, initscr) ++fi + + # Checks for header files, and refuse to go on if no KIOCSOUND is available. + AC_HEADER_STDC +@@ -92,13 +108,17 @@ + # Decide on which subdirectories to build; substitute into SUBDIRS. Build + # cwcp if curses is available, and xcwcp if Qt is available. + SUBDIRS="cwlib cwutils cw cwgen" ++ ++if test "$enable_ncurses" = 'yes'; then + # Simple test for curses based on prior library check. + if test $ac_cv_lib_curses_initscr = 'yes' ; then + SUBDIRS="$SUBDIRS cwcp" + else + AC_MSG_WARN([Cannot find libcurses - unable to build cwcp]) + fi ++fi + ++if test "$enable_qt3" = 'yes'; then + # Look for $QTDIR. If found, then look for moc, either on $PATH, or + # in $QTDIR/bin. + MOC_EARLIEST=3 +@@ -135,6 +155,8 @@ + AC_MSG_WARN([Cannot find libqt - unable to build xcwcp]) + AC_MSG_WARN([Hint: try setting a value for the QTDIR variable]) + fi ++fi ++ + AC_SUBST(SUBDIRS) + + # Add -Wall, -W, -pedantic, and other paranoia to gcc command flags, and -Wall diff --git a/media-radio/unixcw/unixcw-2.3-r1.ebuild b/media-radio/unixcw/unixcw-2.3-r1.ebuild new file mode 100644 index 000000000..799012411 --- /dev/null +++ b/media-radio/unixcw/unixcw-2.3-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools eutils + +DESCRIPTION="A package of programs that fit together to form a morse code tutor program." +HOMEPAGE="http://radio.linux.org.au/?sectpat=morse" +SRC_URI="ftp://metalab.unc.edu/pub/Linux/apps/ham/morse/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="ncurses qt3" + +RDEPEND="ncurses? ( sys-libs/ncurses ) + qt3? ( =x11-libs/qt-3* )" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-destdir.patch + epatch "${FILESDIR}"/${P}-config.patch + eautoreconf +} + +src_compile() { + econf $(use_enable ncurses) \ + $(use_enable qt3) + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README || die "dodoc failed" +} diff --git a/media-radio/unixcw/unixcw-2.3.ebuild b/media-radio/unixcw/unixcw-2.3.ebuild deleted file mode 100644 index e364b7e1a..000000000 --- a/media-radio/unixcw/unixcw-2.3.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit eutils - -DESCRIPTION="A package of programs that fit together to form a morse code tutor program." -HOMEPAGE="http://radio.linux.org.au/?sectpat=morse" -SRC_URI="ftp://metalab.unc.edu/pub/Linux/apps/ham/morse/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86" -IUSE="" - - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${P}-destdir.patch -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc README || die "dodoc failed" -} -- cgit v1.2.3-18-g5258