This module provides a Perlish interface to Amazon Mechanical Turk.

WWW:	http://search.cpan.org/~mturk/

PR:		ports/117641
Submitted by:	Greg Larkin <glarkin at sourcehosting.net>
This commit is contained in:
Martin Wilke 2007-12-12 13:21:20 +00:00
parent 189d17b821
commit 24ed5cf83e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=203282
6 changed files with 174 additions and 0 deletions

View File

@ -451,6 +451,7 @@
SUBDIR += p5-Net-Address-Ethernet
SUBDIR += p5-Net-Address-IPv4-Local
SUBDIR += p5-Net-Amazon
SUBDIR += p5-Net-Amazon-MechanicalTurk
SUBDIR += p5-Net-Amazon-S3
SUBDIR += p5-Net-Analysis
SUBDIR += p5-Net-BGP

View File

@ -0,0 +1,47 @@
# New ports collection makefile for: p5-Net-Amazon-MechanicalTurk
# Date created: 2007-10-29
# Whom: Greg Larkin <glarkin@sourcehosting.net>
#
# $FreeBSD$
#
PORTNAME= Net-Amazon-MechanicalTurk
PORTVERSION= 1.01
CATEGORIES= net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= glarkin@sourcehosting.net
COMMENT= Perl interface to the Amazon Mechanical Turk
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
${SITE_PERL}/Digest/HMAC_SHA1.pm:${PORTSDIR}/security/p5-Digest-HMAC \
${SITE_PERL}/Module/Build.pm:${PORTSDIR}/devel/p5-Module-Build \
${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Net::Amazon::MechanicalTurk.3 \
Net::Amazon::MechanicalTurk::BulkSupport.3 \
Net::Amazon::MechanicalTurk::Command::AddRetry.3 \
Net::Amazon::MechanicalTurk::Command::DeleteHIT.3 \
Net::Amazon::MechanicalTurk::Command::GetAvailableBalance.3 \
Net::Amazon::MechanicalTurk::Command::GetHITTypeURL.3 \
Net::Amazon::MechanicalTurk::Command::ListOperations.3 \
Net::Amazon::MechanicalTurk::Command::LoadHITs.3 \
Net::Amazon::MechanicalTurk::Command::ParseAssignmentAnswer.3 \
Net::Amazon::MechanicalTurk::Command::RetrieveResults.3 \
Net::Amazon::MechanicalTurk::Command::UpdateHITs.3
SUB_LIST+= HOME=${HOME} EXAMPLESDIR=${EXAMPLESDIR}
SUB_FILES= pkg-message
post-install:
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \;
cd ${WRKSRC}/samples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Net-Amazon-MechanicalTurk-1.01.tar.gz) = c9c5b93fefbdd1148c74c94b5cd533c7
SHA256 (Net-Amazon-MechanicalTurk-1.01.tar.gz) = 2ffa90b54b234ca26b55f624b21a312211ab00a28a5d867210876b711936b09f
SIZE (Net-Amazon-MechanicalTurk-1.01.tar.gz) = 61660

View File

@ -0,0 +1,28 @@
You need to do some things before you can use the Amazon Mechanical Turk:
1) Visit http://aws.amazon.com/ to create an Amazon AWS account.
2) Configure the MTurk Perl module with the following command:
perl -MNet::Amazon::MechanicalTurk::Configurer -e configure
Your configuration file will be created in the file
%%HOME%%/.aws/auth.
3) Try out the samples in %%EXAMPLESDIR%%,
if you like.
4) Use the MTurk Sandbox to create HITs in a development environment for
free. This Perl module uses the sandbox by default.
5) When you are ready to submit real HITs, add the following line to your
%%HOME%%/.aws/auth file:
service_url: http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
DISCLAIMER: No one but you is responsible for paying MTurk workers for
the HITs that you submit to the live service. Please make sure
you know which MTurk service you are submitting HITs to -
the sandbox (default) or the production service.

View File

@ -0,0 +1,3 @@
This module provides a Perlish interface to Amazon Mechanical Turk.
WWW: http://search.cpan.org/~mturk/

View File

@ -0,0 +1,92 @@
%%SITE_PERL%%/Net/Amazon/MechanicalTurk.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/BaseObject.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/BulkSupport.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/AddRetry.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/DeleteHIT.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/GetAvailableBalance.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/GetHITTypeURL.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/ListOperations.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/LoadHITs.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/ParseAssignmentAnswer.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/RetrieveResults.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/SetQuestionPostValidationOnError.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command/UpdateHITs.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Configurer.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Constants.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/DataStructure.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/DelimitedReader.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/DelimitedWriter.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/FilterChain.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/IOUtil.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/ModuleUtil.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/OSUtil.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/PagedResultsIterator.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Properties.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/QAPValidator.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/QAPValidator/QAPValidatorMSXML.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/QuestionFormAnswers.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Response.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/ArrayHashRowData.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/DelimitedRowData.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/SQLRowData.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData/SubroutineRowData.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template/PerlTemplate.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template/ReplacementTemplate.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template/SubroutineTemplate.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Transport.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/Transport/RESTTransport.pm
%%SITE_PERL%%/Net/Amazon/MechanicalTurk/XMLParser.pm
%%SITE_PERL%%/Net/Amazon/mturk_install.pl
%%EXAMPLESDIR%%/accountBalance/README.txt
%%EXAMPLESDIR%%/accountBalance/accountbalance.pl
%%EXAMPLESDIR%%/best_image/BestImage.pl
%%EXAMPLESDIR%%/best_image/README.txt
%%EXAMPLESDIR%%/best_image/best_image.properties
%%EXAMPLESDIR%%/best_image/best_image.question
%%EXAMPLESDIR%%/helloworld/README.txt
%%EXAMPLESDIR%%/helloworld/helloworld-answer.pl
%%EXAMPLESDIR%%/helloworld/helloworld-create.pl
%%EXAMPLESDIR%%/listHITs/README.txt
%%EXAMPLESDIR%%/listHITs/listHITs.pl
%%EXAMPLESDIR%%/loadHITs/README.txt
%%EXAMPLESDIR%%/loadHITs/approveRemaining.pl
%%EXAMPLESDIR%%/loadHITs/getresults.pl
%%EXAMPLESDIR%%/loadHITs/loadhits-input.csv
%%EXAMPLESDIR%%/loadHITs/loadhits.pl
%%EXAMPLESDIR%%/loadHITs/reject.pl
%%EXAMPLESDIR%%/loadHITs/removehits.pl
%%EXAMPLESDIR%%/loadHITsFromCustomCode/README.txt
%%EXAMPLESDIR%%/loadHITsFromCustomCode/cities.xml
%%EXAMPLESDIR%%/loadHITsFromCustomCode/loadhits.pl
%%EXAMPLESDIR%%/loadHITsFromCustomCode/loadhits2.pl
%%EXAMPLESDIR%%/loadHITsFromDB/README.txt
%%EXAMPLESDIR%%/loadHITsFromDB/createdb.pl
%%EXAMPLESDIR%%/loadHITsFromDB/dumptables.pl
%%EXAMPLESDIR%%/loadHITsFromDB/loadhits.pl
%%EXAMPLESDIR%%/removeAllHITs/README.txt
%%EXAMPLESDIR%%/removeAllHITs/removeAllHITs.pl
%%EXAMPLESDIR%%/simple_survey/README.txt
%%EXAMPLESDIR%%/simple_survey/SimpleSurvey.pl
%%EXAMPLESDIR%%/simple_survey/simple_survey.question
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Amazon/MechanicalTurk/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Amazon/MechanicalTurk
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/Amazon
@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/Transport
@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/Template
@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/RowData
@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/QAPValidator
@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk/Command
@dirrm %%SITE_PERL%%/Net/Amazon/MechanicalTurk
@dirrm %%SITE_PERL%%/Net/Amazon
@dirrm %%EXAMPLESDIR%%/simple_survey
@dirrm %%EXAMPLESDIR%%/removeAllHITs
@dirrm %%EXAMPLESDIR%%/loadHITsFromDB
@dirrm %%EXAMPLESDIR%%/loadHITsFromCustomCode
@dirrm %%EXAMPLESDIR%%/loadHITs
@dirrm %%EXAMPLESDIR%%/listHITs
@dirrm %%EXAMPLESDIR%%/helloworld
@dirrm %%EXAMPLESDIR%%/best_image
@dirrm %%EXAMPLESDIR%%/accountBalance
@dirrm %%EXAMPLESDIR%%